aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-06-08 16:44:12 +0200
committerRoger Braun <roger@rogerbraun.net>2017-06-08 16:44:12 +0200
commit6342fcd5dca2fc4c1241163a406ca78103082048 (patch)
treea05161571b69a6c654ff59ead1587eb3f580fc77 /lib
parent25f9d7a5396b12e30e087346a09614ff2ceeb263 (diff)
downloadpleroma-6342fcd5dca2fc4c1241163a406ca78103082048.tar.gz
Save correct date for incoming notes.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/ostatus/handlers/note_handler.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/ostatus/handlers/note_handler.ex b/lib/pleroma/web/ostatus/handlers/note_handler.ex
index cbbe8ba0d..0abc0ac5c 100644
--- a/lib/pleroma/web/ostatus/handlers/note_handler.ex
+++ b/lib/pleroma/web/ostatus/handlers/note_handler.ex
@@ -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