Skip to content
Snippets Groups Projects
Commit 638456ce authored by Karen Konou's avatar Karen Konou
Browse files

elixir too new for CI's mix format lol

parent a0d732ec
No related branches found
No related tags found
1 merge request!796Feature/thread muting
Pipeline #7332 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment