Stream out deletes, mistakingly removed when resolving merge conflicts
authorrinpatch <rinpatch@sdf.org>
Thu, 18 Apr 2019 21:47:02 +0000 (00:47 +0300)
committerrinpatch <rinpatch@sdf.org>
Thu, 18 Apr 2019 21:47:02 +0000 (00:47 +0300)
lib/pleroma/web/activity_pub/activity_pub.ex

index 9e25744191973ba7751771c1fbd99abccd3d17cc..0b99a169cd1a793781b3802ef807bc503d17e9cf 100644 (file)
@@ -167,7 +167,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
   def stream_out(activity) do
     public = "https://www.w3.org/ns/activitystreams#Public"
 
-    if activity.data["type"] in ["Create", "Announce"] do
+    if activity.data["type"] in ["Create", "Announce", "Delete"] do
       object = Object.normalize(activity.data["object"])
       Pleroma.Web.Streamer.stream("user", activity)
       Pleroma.Web.Streamer.stream("list", activity)