ConversationView: fix formatting

This commit is contained in:
Alibek Omarov 2020-10-30 13:25:13 +01:00 committed by Gitea
parent 0552a08dfd
commit d63ec02f31

View file

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