Commit 638456ce authored by Karen Konou's avatar Karen Konou

elixir too new for CI's mix format lol

parent a0d732ec
Pipeline #7332 passed with stages
in 3 minutes and 21 seconds
......@@ -113,8 +113,7 @@ defmodule Pleroma.Notification do
# 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment