projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Chat: Allow posting without content if an attachment is present.
[akkoma]
/
test
/
web
/
pleroma_api
/
controllers
/
account_controller_test.exs
diff --git
a/test/web/pleroma_api/controllers/account_controller_test.exs
b/test/web/pleroma_api/controllers/account_controller_test.exs
index 6b671a667a7c9811601e277571083c0d779aeefa..34fc4aa23115d66155e2f0816537e44ce06396f2 100644
(file)
--- a/
test/web/pleroma_api/controllers/account_controller_test.exs
+++ b/
test/web/pleroma_api/controllers/account_controller_test.exs
@@
-171,8
+171,8
@@
defmodule Pleroma.Web.PleromaAPI.AccountControllerTest do
} do
{:ok, direct} =
CommonAPI.post(current_user, %{
} do
{:ok, direct} =
CommonAPI.post(current_user, %{
-
"status" =>
"Hi @#{user.nickname}!",
-
"visibility" =>
"direct"
+
status:
"Hi @#{user.nickname}!",
+
visibility:
"direct"
})
CommonAPI.favorite(user, direct.id)
})
CommonAPI.favorite(user, direct.id)
@@
-204,8
+204,8
@@
defmodule Pleroma.Web.PleromaAPI.AccountControllerTest do
{:ok, direct} =
CommonAPI.post(user_two, %{
{:ok, direct} =
CommonAPI.post(user_two, %{
-
"status" =>
"Hi @#{user.nickname}!",
-
"visibility" =>
"direct"
+
status:
"Hi @#{user.nickname}!",
+
visibility:
"direct"
})
CommonAPI.favorite(user, direct.id)
})
CommonAPI.favorite(user, direct.id)