mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 18:17:55 +00:00
twitter api: add support for rendering Page objects
This commit is contained in:
parent
4d8f076125
commit
24ba08de13
|
@ -283,7 +283,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
|
||||||
{summary, content}
|
{summary, content}
|
||||||
end
|
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"] || object["summary"]
|
summary = object["name"] || object["summary"]
|
||||||
|
|
||||||
content =
|
content =
|
||||||
|
|
Loading…
Reference in a new issue