diff --git a/files/helpers/const.py b/files/helpers/const.py index fc0c2e658..756bd4669 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -8,6 +8,8 @@ SLURS = { "retarded": "r-slurred", "retard": "r-slur", "tard": "r-slur", + "newfag": "newstrag", + "oldfag": "oldstrag", "faggot": "cute twink", "faggot": "cute twink", "fag": "cute twink", diff --git a/files/routes/comments.py b/files/routes/comments.py index fc171b14d..812245bf9 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -878,6 +878,11 @@ def save_comment(cid, v): if not save: new_save=SaveRelationship(user_id=v.id, comment_id=comment.id, type=2) g.db.add(new_save) + + # message = f"@{v.username} has saved your [comment](/comment/{cid})!" + # existing = g.db.query(Comment.id).filter(Comment.author_id == NOTIFICATIONS_ACCOUNT, Comment.body == message).first() + # if not existing: send_notification(comment.author_id, message) + try: g.db.commit() except: g.db.rollback() @@ -895,6 +900,11 @@ def unsave_comment(cid, v): if save: g.db.delete(save) + + # message = f"@{v.username} has unsaved your [comment](/comment/{cid})!" + # existing = g.db.query(Comment.id).filter(Comment.author_id == NOTIFICATIONS_ACCOUNT, Comment.body == message).first() + # if not existing: send_notification(comment.author_id, message) + g.db.commit() return {"message": "Comment unsaved!"} diff --git a/files/templates/authforms.html b/files/templates/authforms.html index 5e7ac5810..17b795eaf 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -91,7 +91,7 @@
- + diff --git a/files/templates/comments.html b/files/templates/comments.html index 367106477..b8dedd273 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -303,7 +303,7 @@ {% endif %} {{c.author.username}} - {% if c.author.customtitle %} {% if c.author.quadrant %}{% endif %}{{c.author.customtitle | safe}}{% endif %} + {% if c.author.customtitle %} {% if c.author.quadrant %}{% endif %}{{c.author.customtitle | safe}}{% endif %} {% if c.parent_comment_id and not standalone and level<=7 %}{{ c.parent_comment.author.username }}{% endif %} diff --git a/files/templates/default.html b/files/templates/default.html index ad32cfcac..5ba4aaf91 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -80,9 +80,9 @@ - + - + {% block title %}That request was bad and you should feel bad.
diff --git a/files/templates/errors/401.html b/files/templates/errors/401.html index 7eefda53c..0ba2c09b8 100644 --- a/files/templates/errors/401.html +++ b/files/templates/errors/401.html @@ -11,7 +11,7 @@YOU AREN'T WELCOME HERE GO AWAY
diff --git a/files/templates/errors/404.html b/files/templates/errors/404.html index d217c1d06..c408ec6b6 100644 --- a/files/templates/errors/404.html +++ b/files/templates/errors/404.html @@ -10,7 +10,7 @@Someone typed something wrong and it was probably you, please do better.
diff --git a/files/templates/errors/405.html b/files/templates/errors/405.html index a33f403a2..b240e49b0 100644 --- a/files/templates/errors/405.html +++ b/files/templates/errors/405.html @@ -10,7 +10,7 @@idk how anyone gets this error but if you see this, remember to follow @carpathianflorist
the original error text here talked about internet gremlins and wtf
go spam somewhere else nerd
diff --git a/files/templates/errors/500.html b/files/templates/errors/500.html index 486a7e061..b31eea6e6 100644 --- a/files/templates/errors/500.html +++ b/files/templates/errors/500.html @@ -10,7 +10,7 @@Hiiiii it's carp! I think this error means that there's a timeout error. And I think that means something took too long to load so it decided not to work at all. If you keep seeing this on the same page but not other pages, then something is probably wrong with that specific function. It may not be called a function, but that sounds right to me. Anyway, ping me and I'll whine to someone smarter to fix it. Don't bother them. Thanks ily <3
diff --git a/files/templates/errors/nsfw.html b/files/templates/errors/nsfw.html index 0e34702b1..25371ead2 100644 --- a/files/templates/errors/nsfw.html +++ b/files/templates/errors/nsfw.html @@ -10,7 +10,7 @@This post is rated +18 (Adult-Only). You must be 18 or older to continue. Are you sure you want to proceed?