v
This commit is contained in:
parent
98553fe288
commit
472fe8e1ba
1 changed files with 3 additions and 2 deletions
|
@ -928,8 +928,9 @@ def pin_comment(cid, v):
|
|||
|
||||
g.db.add(comment)
|
||||
|
||||
if v.id != comment.author_id and not comment.post.ghost:
|
||||
message = f"@{v.username} (OP) has pinned your [comment]({comment.sl})!"
|
||||
if v.id != comment.author_id:
|
||||
if comment.post.ghost: message = f"OP has pinned your [comment]({comment.sl})!"
|
||||
else: message = f"@{v.username} (OP) has pinned your [comment]({comment.sl})!"
|
||||
send_repeatable_notification(comment.author_id, message)
|
||||
|
||||
g.db.commit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue