mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2024-11-20 05:49:54 +01:00
somehow fucked this up
This commit is contained in:
parent
621a6a1689
commit
ba7c47eca9
1 changed files with 12 additions and 14 deletions
|
@ -73,6 +73,18 @@ defmodule Pleroma.Web.StreamerView do
|
||||||
|
|
||||||
def render("status_update.json", %Activity{} = activity, topic) do
|
def render("status_update.json", %Activity{} = activity, topic) do
|
||||||
activity = Activity.get_create_by_object_ap_id_with_object(activity.object.data["id"])
|
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
|
end
|
||||||
|
|
||||||
def render("chat_update.json", %{chat_message_reference: cm_ref}) do
|
def render("chat_update.json", %{chat_message_reference: cm_ref}) do
|
||||||
|
@ -99,20 +111,6 @@ defmodule Pleroma.Web.StreamerView do
|
||||||
|> Jason.encode!()
|
|> Jason.encode!()
|
||||||
end
|
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
|
def render("follow_relationships_update.json", item, topic) do
|
||||||
%{
|
%{
|
||||||
stream: [topic],
|
stream: [topic],
|
||||||
|
|
Loading…
Reference in a new issue