minor fix for bug
parent
7fa88a3633
commit
647d8fdd2a
|
@ -22,6 +22,7 @@ def flag_post(pid, v):
|
||||||
execute_blackjack(v, post, reason, 'flag')
|
execute_blackjack(v, post, reason, 'flag')
|
||||||
if v.is_muted: abort(403, "You are forbidden from making reports.")
|
if v.is_muted: abort(403, "You are forbidden from making reports.")
|
||||||
reason = reason[:100]
|
reason = reason[:100]
|
||||||
|
og_flair = reason[1:]
|
||||||
reason = filter_emojis_only(reason)
|
reason = filter_emojis_only(reason)
|
||||||
if len(reason) > 350: abort(400, "Too long.")
|
if len(reason) > 350: abort(400, "Too long.")
|
||||||
|
|
||||||
|
@ -49,7 +50,7 @@ def flag_post(pid, v):
|
||||||
position = f'/h/{post.sub} Mod'
|
position = f'/h/{post.sub} Mod'
|
||||||
|
|
||||||
if v.id != post.author_id:
|
if v.id != post.author_id:
|
||||||
message = f'@{v.username} ({position}) has flaired [{post.title}]({post.shortlink}) with the flair: `"{post.flair}"`'
|
message = f'@{v.username} ({position}) has flaired [{post.title}]({post.shortlink}) with the flair: `"{og_flair}"`'
|
||||||
send_repeatable_notification(post.author_id, message)
|
send_repeatable_notification(post.author_id, message)
|
||||||
|
|
||||||
return {"message": "Post flaired successfully!"}
|
return {"message": "Post flaired successfully!"}
|
||||||
|
|
Loading…
Reference in New Issue