Connect attachments with objects, not activities.
This commit is contained in:
parent
6aa1523bb3
commit
2e89d505d3
4 changed files with 9 additions and 9 deletions
|
|
@ -17,7 +17,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
|
|||
"created_at" => published,
|
||||
"in_reply_to_status_id" => activity.data["object"]["inReplyToStatusId"],
|
||||
"statusnet_conversation_id" => activity.data["object"]["statusnetConversationId"],
|
||||
"attachments" => (activity.data["attachment"] || []) |> ObjectRepresenter.enum_to_list(opts)
|
||||
"attachments" => (activity.data["object"]["attachment"] || []) |> ObjectRepresenter.enum_to_list(opts)
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -24,11 +24,11 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
|||
"type" => "Note",
|
||||
"content" => data["status"],
|
||||
"published" => date,
|
||||
"context" => context
|
||||
"context" => context,
|
||||
"attachment" => attachments
|
||||
},
|
||||
"published" => date,
|
||||
"context" => context,
|
||||
"attachment" => attachments
|
||||
"context" => context
|
||||
}
|
||||
|
||||
# Wire up reply info.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue