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
79b51a97
Commit
79b51a97
authored
Dec 23, 2018
by
kaniini
Browse files
twitter api: activity representer: remove peertube hack
parent
9f48485f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/twitter_api/representers/activity_representer.ex
View file @
79b51a97
...
@@ -171,14 +171,7 @@ def to_map(
...
@@ -171,14 +171,7 @@ def to_map(
HTML
.
filter_tags
(
content
,
User
.
html_filter_policy
(
opts
[
:for
]))
HTML
.
filter_tags
(
content
,
User
.
html_filter_policy
(
opts
[
:for
]))
|>
Formatter
.
emojify
(
object
[
"emoji"
])
|>
Formatter
.
emojify
(
object
[
"emoji"
])
video
=
attachments
=
object
[
"attachment"
]
||
[]
if
object
[
"type"
]
==
"Video"
do
[
object
]
else
[]
end
attachments
=
(
object
[
"attachment"
]
||
[])
++
video
reply_parent
=
Activity
.
get_in_reply_to_activity
(
activity
)
reply_parent
=
Activity
.
get_in_reply_to_activity
(
activity
)
...
...
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