diff options
author | rinpatch <rinpatch@sdf.org> | 2020-10-22 10:56:17 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-10-22 10:56:17 +0000 |
commit | d031b185e2c9f143b134b1813a799910adf10bad (patch) | |
tree | 98d9421f36187c94e52fb7c7561182f82373569e /lib | |
parent | 77e827bb66ca42b11795133563b0d805c843fb56 (diff) | |
parent | 3fdc2a0d1e96b45bf71a822afeda72ea667e2b37 (diff) | |
download | pleroma-d031b185e2c9f143b134b1813a799910adf10bad.tar.gz pleroma-d031b185e2c9f143b134b1813a799910adf10bad.zip |
Merge branch '2257-self-chat' into 'develop'
Resolve "Can't message yourself in a chat (but can start it)"
Closes #2257
See merge request pleroma/pleroma!3099
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/side_effects.ex | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/side_effects.ex b/lib/pleroma/web/activity_pub/side_effects.ex index d421ca7af..0fff5faf2 100644 --- a/lib/pleroma/web/activity_pub/side_effects.ex +++ b/lib/pleroma/web/activity_pub/side_effects.ex @@ -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) |