SideEffects: Correctly handle chat messages sent to yourself

This commit is contained in:
lain 2020-10-22 12:22:08 +02:00
commit 8d251096fe
2 changed files with 15 additions and 0 deletions

View file

@ -306,6 +306,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
streamables =
[[actor, recipient], [recipient, actor]]
|> Enum.uniq()
|> Enum.map(fn [user, other_user] ->
if user.local do
{:ok, chat} = Chat.bump_or_create(user.id, other_user.ap_id)