Add idempotency_key to the chat_message entity.
This commit is contained in:
parent
4fbdd1c8a1
commit
8e41baff40
10 changed files with 50 additions and 6 deletions
|
|
@ -255,7 +255,9 @@ defmodule Pleroma.Web.StreamerTest do
|
|||
} do
|
||||
other_user = insert(:user)
|
||||
|
||||
{:ok, create_activity} = CommonAPI.post_chat_message(other_user, user, "hey cirno")
|
||||
{:ok, create_activity} =
|
||||
CommonAPI.post_chat_message(other_user, user, "hey cirno", idempotency_key: "123")
|
||||
|
||||
object = Object.normalize(create_activity, false)
|
||||
chat = Chat.get(user.id, other_user.ap_id)
|
||||
cm_ref = MessageReference.for_chat_and_object(chat, object)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue