mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-30 09:02:28 +00:00
Mix format
This commit is contained in:
parent
fd1fa5a2ec
commit
452980652d
|
@ -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)))
|
||||||
|
|
Loading…
Reference in a new issue