Merge branch 'feature/object-normalization' into 'develop'
[akkoma] / lib / pleroma / web / mastodon_api / views / status_view.ex
index f7ad87badc70b6ed699517add2848eb8315d0df2..4c20581d6239440f3e52b2a12ca9ee23f44d7d48 100644 (file)
@@ -54,8 +54,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
     %{
       id: to_string(activity.id),
       uri: object,
-      # TODO: This might be wrong, check with mastodon.
-      url: nil,
+      url: object,
       account: AccountView.render("account.json", %{user: user}),
       in_reply_to_id: nil,
       in_reply_to_account_id: nil,
@@ -210,6 +209,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
 
   def render_content(%{"type" => "Article"} = object) do
     summary = object["name"]
+
     content =
       if !!summary and summary != "" do
         "<p><a href=\"#{object["url"]}\">#{summary}</a></p>#{object["content"]}"