ConversationView: fix formatting
authorAlibek Omarov <a1ba.omarov@gmail.com>
Fri, 30 Oct 2020 12:25:13 +0000 (13:25 +0100)
committerGitea <gitea@fake.local>
Fri, 30 Oct 2020 12:59:53 +0000 (13:59 +0100)
lib/pleroma/web/mastodon_api/views/conversation_view.ex

index 4636c00e339c4440fb9edce8a0647e5f490b62b4..54577816554de64198b98914008db19e4e1f70f4 100644 (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(),