increase msg char limit on rdrama from 200 to 1000 like WPD

master
Aevann 2024-04-19 19:47:42 +02:00
parent 4ee2727437
commit ef23ec32c8
3 changed files with 2 additions and 3 deletions

View File

@ -537,7 +537,6 @@ CSS_LENGTH_LIMIT = 20000 # do not make larger than 20000 characters without alte
COMMENT_MAX_DEPTH = 200
TRANSFER_MESSAGE_LENGTH_LIMIT = 200 # do not make larger than 10000 characters (comment limit) without altering the table
MIN_REPOST_CHECK_URL_LENGTH = 9 # also change the constant in checkRepost() of submit.js
CHAT_LENGTH_LIMIT = 1000
HOLE_BANNER_LIMIT = 10
BIO_FRIENDS_ENEMIES_LENGTH_LIMIT = 5000 # do not make larger than 5000 characters without altering the table

View File

@ -84,7 +84,7 @@ def speak(data, v):
f.write(data['file'])
image = process_image(name, v)
text = data['message'].strip()[:CHAT_LENGTH_LIMIT]
text = data['message'].strip()[:1000]
if image: text += f'\n\n{image}'
if not text: return ''

View File

@ -373,7 +373,7 @@
{{gif_btn('input-text-chat')}}
{{file_btn('file', False, True)}}
<textarea id="input-text-chat" minlength="1" maxlength="{% if SITE == 'rdrama.net' %}200{% else %}1000{% endif %}" {% if g.browser in ("iphone","mac") %}style="font-size:16px!important"{% endif %} class="file-ta form-control ml-2" placeholder="Message" autocomplete="off" autofocus rows="1"></textarea>
<textarea id="input-text-chat" minlength="1" maxlength="1000" {% if g.browser in ("iphone","mac") %}style="font-size:16px!important"{% endif %} class="file-ta form-control ml-2" placeholder="Message" autocomplete="off" autofocus rows="1"></textarea>
<i id="chatsend" data-nonce="{{g.nonce}}" data-onclick="send()" class="btn btn-secondary fas fa-reply ml-1 my-auto" style="transform:rotateY(180deg)"></i>
</div>