mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-27 02:20:29 +00:00
ostatus: note handler: appropriately use Object.normalize()
This commit is contained in:
parent
67038ae15e
commit
d3fde9b5f2
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,8 @@ defmodule Pleroma.Web.OStatus.NoteHandler do
|
||||||
cw <- OStatus.get_cw(entry),
|
cw <- OStatus.get_cw(entry),
|
||||||
inReplyTo <- XML.string_from_xpath("//thr:in-reply-to[1]/@ref", entry),
|
inReplyTo <- XML.string_from_xpath("//thr:in-reply-to[1]/@ref", entry),
|
||||||
inReplyToActivity <- fetch_replied_to_activity(entry, inReplyTo),
|
inReplyToActivity <- fetch_replied_to_activity(entry, inReplyTo),
|
||||||
inReplyTo <- (inReplyToActivity && inReplyToActivity.data["object"]["id"]) || inReplyTo,
|
inReplyToObject <- (inReplyToActivity && Object.normalize(inReplyToActivity.data["object"])) || nil,
|
||||||
|
inReplyTo <- (inReplyToObject && inReplyToObject.data["id"]) || inReplyTo,
|
||||||
attachments <- OStatus.get_attachments(entry),
|
attachments <- OStatus.get_attachments(entry),
|
||||||
context <- get_context(entry, inReplyTo),
|
context <- get_context(entry, inReplyTo),
|
||||||
tags <- OStatus.get_tags(entry),
|
tags <- OStatus.get_tags(entry),
|
||||||
|
|
Loading…
Reference in a new issue