Send the correct update in streamer
get_create_by_ap_id_with_object() seems to fetch the old object. Why this happens needs further investigation.
This commit is contained in:
parent
27f3d802f2
commit
7451f0e81f
3 changed files with 39 additions and 10 deletions
|
|
@ -26,8 +26,6 @@ defmodule Pleroma.Web.StreamerView do
|
|||
end
|
||||
|
||||
def render("status_update.json", %Activity{} = activity, %User{} = user) do
|
||||
activity = Activity.get_create_by_object_ap_id_with_object(activity.object.data["id"])
|
||||
|
||||
%{
|
||||
event: "status.update",
|
||||
payload:
|
||||
|
|
@ -68,8 +66,6 @@ defmodule Pleroma.Web.StreamerView do
|
|||
end
|
||||
|
||||
def render("status_update.json", %Activity{} = activity) do
|
||||
activity = Activity.get_create_by_object_ap_id_with_object(activity.object.data["id"])
|
||||
|
||||
%{
|
||||
event: "status.update",
|
||||
payload:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue