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
3c86d907
Commit
3c86d907
authored
Jan 05, 2019
by
scarlett
Browse files
add some brakets to the emoji list.
parent
0787f0df
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/common_api/common_api.ex
View file @
3c86d907
...
...
@@ -124,7 +124,7 @@ def post(user, %{"status" => status} = data) do
Map
.
put
(
object
,
"emoji"
,
Formatter
.
get_emoji
(
status
)
++
Formatter
.
get_emoji
(
data
[
"spoiler_text"
])
(
Formatter
.
get_emoji
(
status
)
++
Formatter
.
get_emoji
(
data
[
"spoiler_text"
])
)
|>
Enum
.
reduce
(%{},
fn
{
name
,
file
},
acc
->
Map
.
put
(
acc
,
name
,
"
#{
Pleroma
.
Web
.
Endpoint
.
static_url
()
}#{
file
}
"
)
end
)
...
...
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