diff options
author | lain <lain@soykaf.club> | 2020-11-03 13:56:12 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-11-03 13:56:12 +0100 |
commit | c37118e6f26f0305d540047e4ccb8d594d2c0e6b (patch) | |
tree | 5e2e3767cce93218ae162bd564673d830f2d3e1b /lib | |
parent | 91f6c3243032d88a813e4cfed6bf3d0f1ae5924d (diff) | |
download | pleroma-c37118e6f26f0305d540047e4ccb8d594d2c0e6b.tar.gz pleroma-c37118e6f26f0305d540047e4ccb8d594d2c0e6b.zip |
Conversations: A few refactors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/conversation_view.ex | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/conversation_view.ex b/lib/pleroma/web/mastodon_api/views/conversation_view.ex index 545778165..82fcff062 100644 --- a/lib/pleroma/web/mastodon_api/views/conversation_view.ex +++ b/lib/pleroma/web/mastodon_api/views/conversation_view.ex @@ -34,7 +34,8 @@ defmodule Pleroma.Web.MastodonAPI.ConversationView do activity = Activity.get_by_id_with_object(last_activity_id) - # Conversations return all users except current user when current user is not only participant + # Conversations return all users except the current user, + # except when the current user is the only participant users = if length(participation.recipients) > 1 do Enum.reject(participation.recipients, &(&1.id == user.id)) |