somehow fucked this up

This commit is contained in:
Fox 2023-03-08 13:26:38 +09:00
parent 621a6a1689
commit ba7c47eca9

View file

@ -73,6 +73,18 @@ defmodule Pleroma.Web.StreamerView do
def render("status_update.json", %Activity{} = activity, topic) do
activity = Activity.get_create_by_object_ap_id_with_object(activity.object.data["id"])
%{
stream: [topic],
event: "status.update",
payload:
Pleroma.Web.MastodonAPI.StatusView.render(
"show.json",
activity: activity
)
|> Jason.encode!()
}
|> Jason.encode!()
end
def render("chat_update.json", %{chat_message_reference: cm_ref}) do
@ -99,20 +111,6 @@ defmodule Pleroma.Web.StreamerView do
|> Jason.encode!()
end
def render("follow_relationships_update.json", item) do
%{
stream: [topic],
event: "status.update",
payload:
Pleroma.Web.MastodonAPI.StatusView.render(
"show.json",
activity: activity
)
|> Jason.encode!()
}
|> Jason.encode!()
end
def render("follow_relationships_update.json", item, topic) do
%{
stream: [topic],