diff --git a/files/routes/comments.py b/files/routes/comments.py index b0ce382c7a..9e39f0e132 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -928,7 +928,7 @@ def pin_comment(cid, v): g.db.add(comment) - if v.id != comment.author_id: + if v.id != comment.author_id and not comment.post.ghost: message = f"@{v.username} (OP) has pinned your [comment]({comment.sl})!" send_repeatable_notification(comment.author_id, message)