better notifications

This commit is contained in:
rimu 2024-02-10 20:06:08 +13:00
parent fa649bb8ab
commit 3a9b12584d

View file

@ -984,7 +984,6 @@ def create_post_reply(activity_log: ActivityPubLog, community: Community, in_rep
# send notification to the post/comment being replied to
if notification_target.notify_author and post_reply.user_id != notification_target.user_id and notification_target.author.ap_id is None:
if isinstance(notification_target, PostReply):
anchor = f"comment_{post_reply.id}"
notification = Notification(title=shorten_string(_('Reply from %(name)s on %(post_title)s',
name=post_reply.author.display_name(),