Merge branch 'develop' into feature/incoming_ostatus
[akkoma] / lib / pleroma / web / ostatus / activity_representer.ex
index 590abc8bbbad3cfc7135f6b9936466a2520671b1..367212fe142bd662a48057c1451afbcc6ea9c70d 100644 (file)
@@ -19,7 +19,9 @@ defmodule Pleroma.Web.OStatus.ActivityRepresenter do
       {:title, ['New note by #{user.nickname}']},
       {:content, [type: 'html'], h.(activity.data["object"]["content"])},
       {:published, h.(inserted_at)},
-      {:updated, h.(updated_at)}
+      {:updated, h.(updated_at)},
+      {:"ostatus:conversation", [], h.(activity.data["context"])},
+      {:link, [href: h.(activity.data["context"]), rel: 'ostatus:conversation'], []}
     ] ++ attachments
   end