renaming back and reject nil on create
This commit is contained in:
parent
52ff75413a
commit
20c27bef40
5 changed files with 35 additions and 31 deletions
|
|
@ -352,6 +352,7 @@ defmodule Pleroma.Notification do
|
|||
end
|
||||
end
|
||||
|
||||
@spec create_notifications(Activity.t(), keyword()) :: {:ok, [Notification.t()] | []}
|
||||
def create_notifications(activity, options \\ [])
|
||||
|
||||
def create_notifications(%Activity{data: %{"to" => _, "type" => "Create"}} = activity, options) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue