mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
ConversationView: fix formatting
This commit is contained in:
parent
0552a08dfd
commit
d63ec02f31
1 changed files with 6 additions and 5 deletions
|
@ -35,11 +35,12 @@ defmodule Pleroma.Web.MastodonAPI.ConversationView do
|
||||||
activity = Activity.get_by_id_with_object(last_activity_id)
|
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 current user when current user is not only participant
|
||||||
users = if length(participation.recipients) > 1 do
|
users =
|
||||||
Enum.reject(participation.recipients, &(&1.id == user.id))
|
if length(participation.recipients) > 1 do
|
||||||
else
|
Enum.reject(participation.recipients, &(&1.id == user.id))
|
||||||
participation.recipients
|
else
|
||||||
end
|
participation.recipients
|
||||||
|
end
|
||||||
|
|
||||||
%{
|
%{
|
||||||
id: participation.id |> to_string(),
|
id: participation.id |> to_string(),
|
||||||
|
|
Loading…
Reference in a new issue