commit 4237b8fe0978f095f055bc4fcf2cfc09b239356d
parent 592f9941186493e6ed77990a60df8bcf19514ff8
Author: Shiimoe <samuelfrost@tuta.io>
Date: Thu, 15 Jul 2021 20:23:25 +0100
no more links :pensive:
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/shiimoe.py b/shiimoe.py
@@ -117,8 +117,8 @@ def postcomment():
return err("No more than 850 characters!")
if name.lower() == "annasysdek":
return err("Sorry, that name is toxic. Pick another.")
- if len(LINK_MATCH.findall(comment)) > 2:
- return err("No more than two (2) links!")
+ if len(LINK_MATCH.findall(comment)) != 0:
+ return err("No links!")
comments = read_comments()
comments.append({
diff --git a/templates/guestbook.html b/templates/guestbook.html
@@ -117,7 +117,7 @@
<input class="name-input input" name="name" placeholder="Your name" required>
<div class="textbox">
<textarea class="comment-input input" name="comment"
- placeholder="# Your comment

(≤2 links, ≤850 characters)"
+ placeholder="# Your comment

(no links, ≤850 characters)"
required></textarea>
<i class="fab fa-markdown"></i>
</div>