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
fc9d895e
Commit
fc9d895e
authored
Feb 24, 2019
by
kaniini
Browse files
twitter card: remove IO.inspect() spam
parent
7daa9a8c
Pipeline
#8154
passed with stages
in 6 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/metadata/twitter_card.ex
View file @
fc9d895e
...
...
@@ -66,9 +66,7 @@ def build_tags(%{user: user}) do
end
end
defp
build_attachments
(
id
,
z
=
%{
data:
%{
"attachment"
=>
attachments
}})
do
IO
.
puts
(
inspect
(
z
))
defp
build_attachments
(
id
,
%{
data:
%{
"attachment"
=>
attachments
}})
do
Enum
.
reduce
(
attachments
,
[],
fn
attachment
,
acc
->
rendered_tags
=
Enum
.
reduce
(
attachment
[
"url"
],
[],
fn
url
,
acc
->
...
...
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