Create Object.hashtags/1 wrapper
[akkoma] / lib / pleroma / web / mastodon_api / views / status_view.ex
index 6fc6272c28922b63c1cb4fc17b668aad62ef3e05..b39f05d13c736b94bf2860191d75222cd9e2c622 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.data)),
       application: %{
         name: "Web",
         website: nil