One more fix.
This commit is contained in:
parent
8c712b3198
commit
0d69bbc1fb
@ -31,8 +31,8 @@ def fix_in_reply_to(%{"inReplyTo" => in_reply_to_id} = object) when not is_nil(i
|
|||||||
|> Map.put("inReplyTo", replied_object.data["id"])
|
|> Map.put("inReplyTo", replied_object.data["id"])
|
||||||
|> Map.put("inReplyToAtomUri", object["inReplyToAtomUri"] || in_reply_to_id)
|
|> Map.put("inReplyToAtomUri", object["inReplyToAtomUri"] || in_reply_to_id)
|
||||||
|> Map.put("inReplyToStatusId", activity.id)
|
|> Map.put("inReplyToStatusId", activity.id)
|
||||||
|> Map.put("conversation", replied_object.data["context"])
|
|> Map.put("conversation", replied_object.data["context"] || object["conversation"])
|
||||||
|> Map.put("context", replied_object.data["context"])
|
|> Map.put("context", replied_object.data["context"] || object["conversation"])
|
||||||
e ->
|
e ->
|
||||||
Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}")
|
Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}")
|
||||||
object
|
object
|
||||||
|
Loading…
Reference in New Issue
Block a user