SideEffects: Don't update unread count for actor in chatmessages.
This commit is contained in:
parent
9c17109765
commit
baf051a59e
2 changed files with 26 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue