forked from rDrama/rDrama
1
0
Fork 0

add linefeeds

master
Aevann 2024-02-11 13:24:43 +02:00
parent f15743235c
commit bcde6c9650
2 changed files with 10 additions and 2 deletions

View File

@ -105,7 +105,11 @@ def notif_comment_mention(p):
search_html = f'%</a> has mentioned you: <a href="/post/{p.id}"%'
existing = g.db.query(Comment.id).filter(Comment.author_id == AUTOJANNY_ID, Comment.parent_post == None, Comment.body_html.like(search_html)).first()
existing = g.db.query(Comment.id).filter(
Comment.author_id == AUTOJANNY_ID,
Comment.parent_post == None,
Comment.body_html.like(search_html),
).first()
if existing: return existing[0], text
else:

View File

@ -419,7 +419,11 @@ def transfers_id(id, v):
@auth_required
def transfers(v):
comments = g.db.query(Comment).filter(Comment.author_id == AUTOJANNY_ID, Comment.parent_post == None, Comment.body_html.like("%</a> has transferred %"))
comments = g.db.query(Comment).filter(
Comment.author_id == AUTOJANNY_ID,
Comment.parent_post == None,
Comment.body_html.like("%</a> has transferred %"),
)
page = get_page()