Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
34a4ed22
Commit
34a4ed22
authored
Dec 23, 2018
by
kaniini
Browse files
twitter api: add "Video" to supported activity types list
parent
873938d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/twitter_api/views/activity_view.ex
View file @
34a4ed22
...
...
@@ -301,7 +301,8 @@ def render_content(%{"type" => "Note"} = object) do
{
summary
,
content
}
end
def
render_content
(%{
"type"
=>
object_type
}
=
object
)
when
object_type
in
[
"Article"
,
"Page"
]
do
def
render_content
(%{
"type"
=>
object_type
}
=
object
)
when
object_type
in
[
"Article"
,
"Page"
,
"Video"
]
do
summary
=
object
[
"name"
]
||
object
[
"summary"
]
content
=
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment