Handle sensitive property.
This commit is contained in:
parent
20e6190ead
commit
539340d914
4 changed files with 6 additions and 3 deletions
|
|
@ -58,7 +58,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
|||
announcement_count = object["announcement_count"] || 0
|
||||
|
||||
tags = object["tag"] || []
|
||||
sensitive = Enum.member?(tags, "nsfw")
|
||||
sensitive = object["sensitive"] || Enum.member?(tags, "nsfw")
|
||||
|
||||
mentions = activity.data["to"]
|
||||
|> Enum.map(fn (ap_id) -> User.get_cached_by_ap_id(ap_id) end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue