fix 500 error

master
Aevann 2024-02-18 15:19:31 +02:00
parent 1b02713f34
commit f0b141b3c0
1 changed files with 2 additions and 2 deletions

View File

@ -832,7 +832,7 @@ def mark_post_nsfw(pid, v):
target_post_id = p.id,
)
g.db.add(ma)
position = f'a /h/{post.hole} mod'
position = f'a /h/{p.hole} mod'
send_repeatable_notification(p.author_id, f"@{v.username} ({position}) has marked [{p.title}](/post/{p.id}) as NSFW")
@ -874,7 +874,7 @@ def unmark_post_nsfw(pid, v):
target_post_id = p.id,
)
g.db.add(ma)
position = f'a /h/{post.hole} mod'
position = f'a /h/{p.hole} mod'
send_repeatable_notification(p.author_id, f"@{v.username} ({position}) has unmarked [{p.title}](/post/{p.id}) as NSFW")