mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 16:24:23 +00:00
mastodon api: add support for rendering Page objects
This commit is contained in:
parent
9f03b5c4f7
commit
4d8f076125
|
@ -236,7 +236,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
|||
content
|
||||
end
|
||||
|
||||
def render_content(%{"type" => "Article"} = object) do
|
||||
def render_content(%{"type" => object_type} = object) when object_type in ["Article", "Page"] do
|
||||
summary = object["name"]
|
||||
|
||||
content =
|
||||
|
|
Loading…
Reference in a new issue