Save incoming tags as lowercase.
[akkoma] / lib / pleroma / web / ostatus / activity_representer.ex
index e91ff0769290abc28867a02a90141e2bcc7418a7..eaa3c65e9495822a116ff846fd5e26e11a357426 100644 (file)
@@ -28,8 +28,8 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
   def to_simple_form(%{data: %{"object" => %{"type" => "Note"}}} = activity, user, with_author) do
     h = fn(str) -> [to_charlist(str)] end
 
-    updated_at = activity.data["published"]
-    inserted_at = activity.data["published"]
+    updated_at = activity.data["object"]["published"]
+    inserted_at = activity.data["object"]["published"]
 
     attachments = Enum.map(activity.data["object"]["attachment"] || [], fn(attachment) ->
       url = hd(attachment["url"])