ChatMessage: Support emoji.
This commit is contained in:
parent
b836d3d104
commit
7e53da250e
5 changed files with 29 additions and 20 deletions
|
|
@ -33,7 +33,7 @@ defmodule Pleroma.Web.CommonAPITest do
|
|||
CommonAPI.post_chat_message(
|
||||
author,
|
||||
recipient,
|
||||
"a test message <script>alert('uuu')</script>"
|
||||
"a test message <script>alert('uuu')</script> :firefox:"
|
||||
)
|
||||
|
||||
assert activity.data["type"] == "Create"
|
||||
|
|
@ -44,7 +44,11 @@ defmodule Pleroma.Web.CommonAPITest do
|
|||
assert object.data["to"] == [recipient.ap_id]
|
||||
|
||||
assert object.data["content"] ==
|
||||
"a test message <script>alert('uuu')</script>"
|
||||
"a test message <script>alert('uuu')</script> :firefox:"
|
||||
|
||||
assert object.data["emoji"] == %{
|
||||
"firefox" => "http://localhost:4001/emoji/Firefox.gif"
|
||||
}
|
||||
|
||||
assert Chat.get(author.id, recipient.ap_id)
|
||||
assert Chat.get(recipient.id, author.ap_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue