projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
twitter api: add support for rendering Page objects
[akkoma]
/
lib
/
pleroma
/
web
/
twitter_api
/
views
/
activity_view.ex
diff --git
a/lib/pleroma/web/twitter_api/views/activity_view.ex
b/lib/pleroma/web/twitter_api/views/activity_view.ex
index fb97f199bcde8a9a444754350fe9bb26df719825..8e8b3f5ed8417280c64af8c3b627605d45107948 100644
(file)
--- a/
lib/pleroma/web/twitter_api/views/activity_view.ex
+++ b/
lib/pleroma/web/twitter_api/views/activity_view.ex
@@
-283,7
+283,7
@@
defmodule Pleroma.Web.TwitterAPI.ActivityView do
{summary, 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"] || object["summary"]
content =