Pleroma.Object/1: take %Object{} as argument instead
[akkoma] / lib / pleroma / web / mastodon_api / views / status_view.ex
index 6fc6272c28922b63c1cb4fc17b668aad62ef3e05..3ba453d1fe05ecffce614300b565228b4ded1c3e 100644 (file)
@@ -347,7 +347,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
       media_attachments: attachments,
       poll: render(PollView, "show.json", object: object, for: opts[:for]),
       mentions: mentions,
-      tags: build_tags(object.data["hashtags"] || tags),
+      tags: build_tags(Object.hashtags(object)),
       application: %{
         name: "Web",
         website: nil