From: Roman Chvanikov Date: Sun, 14 Jul 2019 19:04:55 +0000 (+0300) Subject: Make opts optional in Pleroma.Notification.for_user_query/2 X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=168dc97c37f274b258b04eb7e883640b84259714;p=akkoma Make opts optional in Pleroma.Notification.for_user_query/2 --- diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index f680fe049..04bbfa0df 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -33,7 +33,7 @@ defmodule Pleroma.Notification do |> cast(attrs, [:seen]) end - def for_user_query(user, opts) do + def for_user_query(user, opts \\ []) do query = Notification |> where(user_id: ^user.id)