Save correct date for incoming notes.
This commit is contained in:
parent
25f9d7a539
commit
6342fcd5dc
2 changed files with 2 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ defmodule Pleroma.Web.OStatus.NoteHandler do
|
|||
date <- XML.string_from_xpath("//published", entry),
|
||||
note <- TwitterAPI.Utils.make_note_data(actor.ap_id, to, context, content_html, attachments, inReplyToActivity, []),
|
||||
note <- note |> Map.put("id", id) |> Map.put("tag", tags),
|
||||
note <- note |> Map.put("published", date),
|
||||
# TODO: Handle this case in make_note_data
|
||||
note <- (if inReplyTo && !inReplyToActivity, do: note |> Map.put("inReplyTo", inReplyTo), else: note)
|
||||
do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue