diff options
author | lain <lain@soykaf.club> | 2020-05-17 12:22:26 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-05-17 12:22:26 +0200 |
commit | baf051a59e8bfcb2e55b5e28e46e80d6961b9bb4 (patch) | |
tree | e958c63b96d5f314b80d0a172c0e8b813cb77bea /lib | |
parent | 9c171097653abce49b9847fff66bc39b35719a1c (diff) | |
download | pleroma-baf051a59e8bfcb2e55b5e28e46e80d6961b9bb4.tar.gz |
SideEffects: Don't update unread count for actor in chatmessages.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/side_effects.ex | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/side_effects.ex b/lib/pleroma/web/activity_pub/side_effects.ex index c8b675d54..8e64b4615 100644 --- a/lib/pleroma/web/activity_pub/side_effects.ex +++ b/lib/pleroma/web/activity_pub/side_effects.ex @@ -117,7 +117,11 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do [[actor, recipient], [recipient, actor]] |> Enum.each(fn [user, other_user] -> if user.local do - Chat.bump_or_create(user.id, other_user.ap_id) + if user.ap_id == actor.ap_id do + Chat.get_or_create(user.id, other_user.ap_id) + else + Chat.bump_or_create(user.id, other_user.ap_id) + end end end) |