SideEffects: Test for notification creation.

This commit is contained in:
lain 2020-04-17 15:50:15 +02:00
commit 26d9c83316
2 changed files with 12 additions and 2 deletions

View file

@ -17,7 +17,9 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
def handle(%{data: %{"type" => "Like"}} = object, meta) do
liked_object = Object.get_by_ap_id(object.data["object"])
Utils.add_like_to_object(object, liked_object)
Notification.create_notifications(object)
{:ok, object, meta}
end