elixir too new for CI's mix format lol
This commit is contained in:
parent
a0d732ec55
commit
638456ce8f
1 changed files with 1 additions and 2 deletions
|
@ -113,8 +113,7 @@ def create_notifications(_), do: {:ok, []}
|
|||
# TODO move to sql, too.
|
||||
def create_notification(%Activity{} = activity, %User{} = user) do
|
||||
unless User.blocks?(user, %{ap_id: activity.data["actor"]}) or
|
||||
ThreadMute.muted?(user, activity) or
|
||||
user.ap_id == activity.data["actor"] or
|
||||
ThreadMute.muted?(user, activity) or user.ap_id == activity.data["actor"] or
|
||||
(activity.data["type"] == "Follow" and
|
||||
Enum.any?(Notification.for_user(user), fn notif ->
|
||||
notif.activity.data["type"] == "Follow" and
|
||||
|
|
Loading…
Reference in a new issue