From 3a9b12584dec5a2ea398d30214479c44ef636189 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sat, 10 Feb 2024 20:06:08 +1300 Subject: [PATCH] better notifications --- app/activitypub/util.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index be3e605a..74cb20b6 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -984,8 +984,7 @@ 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}" + 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(), post_title=post.title), 50),