forked from rDrama/rDrama
add linefeeds
parent
f15743235c
commit
bcde6c9650
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue