Mix format

This commit is contained in:
Sadposter 2019-07-23 15:13:05 +01:00
parent fd1fa5a2ec
commit 452980652d
2 changed files with 32 additions and 28 deletions

View File

@ -885,7 +885,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
q = from(u in User, where: u.ap_id in ^likes) q = from(u in User, where: u.ap_id in ^likes)
users = Repo.all(q) users = Repo.all(q)
users = if is_nil(user) do
users =
if is_nil(user) do
users users
else else
Enum.filter(users, &(not User.blocks?(user, &1))) Enum.filter(users, &(not User.blocks?(user, &1)))
@ -905,7 +907,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
q = from(u in User, where: u.ap_id in ^announces) q = from(u in User, where: u.ap_id in ^announces)
users = Repo.all(q) users = Repo.all(q)
users = if is_nil(user) do
users =
if is_nil(user) do
users users
else else
Enum.filter(users, &(not User.blocks?(user, &1))) Enum.filter(users, &(not User.blocks?(user, &1)))