Browse Source

ConversationView: fix formatting

2298-weird-follow-issue
Alibek Omarov Gitea 3 years ago
parent
commit
d63ec02f31
1 changed files with 6 additions and 5 deletions
  1. +6
    -5
      lib/pleroma/web/mastodon_api/views/conversation_view.ex

+ 6
- 5
lib/pleroma/web/mastodon_api/views/conversation_view.ex View File

@@ -35,11 +35,12 @@ 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
users = if length(participation.recipients) > 1 do
Enum.reject(participation.recipients, &(&1.id == user.id))
else
participation.recipients
end
users =
if length(participation.recipients) > 1 do
Enum.reject(participation.recipients, &(&1.id == user.id))
else
participation.recipients
end

%{
id: participation.id |> to_string(),


Loading…
Cancel
Save