change chat char limit again

master
Aevann1 2022-08-14 04:38:07 +02:00
parent 0bd78bb676
commit 0fa6442846
2 changed files with 5 additions and 2 deletions

View File

@ -47,7 +47,10 @@ def speak(data, v):
else: del muted[vname] else: del muted[vname]
global messages, total global messages, total
text = data[:200].strip()
if SITE == 'rdrama.net': text = data[:200].strip()
else: text = data[:1000].strip()
if not text: return '', 403 if not text: return '', 403
text_html = sanitize(text) text_html = sanitize(text)

View File

@ -184,7 +184,7 @@
<span id="loading-indicator" class="d-none"></span> <span id="loading-indicator" class="d-none"></span>
</div> </div>
<i class="btn btn-secondary mr-2 fas fa-smile-beam" style="padding-top:0.65rem" onclick="loadEmojis('input-text')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-placement="bottom" title="Add Emoji"></i> <i class="btn btn-secondary mr-2 fas fa-smile-beam" style="padding-top:0.65rem" onclick="loadEmojis('input-text')" aria-hidden="true" data-bs-toggle="modal" data-bs-target="#emojiModal" data-bs-placement="bottom" title="Add Emoji"></i>
<textarea id="input-text" minlength="1" maxlength="200" type="text" class="form-control" placeholder="Message" autocomplete="off" autofocus rows="1"></textarea> <textarea id="input-text" minlength="1" maxlength="{% if SITE == 'rdrama.net' %}200{% else %}1000{% endif %}" type="text" class="form-control" placeholder="Message" autocomplete="off" autofocus rows="1"></textarea>
<button id="chatsend" onclick="send()" class="btn btn-primary ml-3" type="submit" onclick="disable(this)">Send</button> <button id="chatsend" onclick="send()" class="btn btn-primary ml-3" type="submit" onclick="disable(this)">Send</button>
</div> </div>
</div> </div>