MastoAPI: Add streaming for lists.

This commit is contained in:
eal 2018-05-30 16:33:37 +03:00
commit 5d3fdbc082
6 changed files with 56 additions and 3 deletions

View file

@ -57,6 +57,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
if activity.data["type"] in ["Create", "Announce"] do
Pleroma.Web.Streamer.stream("user", activity)
Pleroma.Web.Streamer.stream("list", activity)
if Enum.member?(activity.data["to"], public) do
Pleroma.Web.Streamer.stream("public", activity)