renaming back and reject nil on create

This commit is contained in:
Alexander Strizhakov 2020-02-26 17:50:56 +03:00
commit 20c27bef40
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
5 changed files with 35 additions and 31 deletions

View file

@ -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