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