projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mastodon api: add support for rendering Page objects
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
views
/
status_view.ex
diff --git
a/lib/pleroma/web/mastodon_api/views/status_view.ex
b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 1efd994709fb6a2765f3588d590d5e47340621dc..27fe23594f07ae849d77477efeccfebb73a7d2f1 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/
lib/pleroma/web/mastodon_api/views/status_view.ex
@@
-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 =