Make outbound transmogrifier aware of edit history
This commit is contained in:
parent
5321fd0012
commit
014096aeef
5 changed files with 109 additions and 54 deletions
|
|
@ -411,7 +411,6 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||
{:ok, object, meta}
|
||||
end
|
||||
|
||||
@updatable_object_types ["Note", "Question"]
|
||||
defp handle_update_object(
|
||||
%{data: %{"type" => "Update", "object" => updated_object}} = object,
|
||||
meta
|
||||
|
|
@ -429,7 +428,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do
|
|||
meta[:object_data]
|
||||
end
|
||||
|
||||
if orig_object_data["type"] in @updatable_object_types do
|
||||
if orig_object_data["type"] in Pleroma.Constants.updatable_object_types() do
|
||||
%{
|
||||
updated_data: updated_object_data,
|
||||
updated: updated,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue