aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-06-04 20:28:33 +0200
committerlain <lain@soykaf.club>2020-06-04 20:28:33 +0200
commitd44da91bbf50ae91e8246ebe3669cfaf1fabda1b (patch)
treef18dc6def5772013a8f47002e0eeb32210938363 /test
parent74edd4f39174c2d0445772acc5c284b1575414f9 (diff)
downloadpleroma-d44da91bbf50ae91e8246ebe3669cfaf1fabda1b.tar.gz
SubscriptionOperation: Let chat mentions through.
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/controllers/subscription_controller_test.exs6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/web/mastodon_api/controllers/subscription_controller_test.exs b/test/web/mastodon_api/controllers/subscription_controller_test.exs
index 4aa260663..d36bb1ae8 100644
--- a/test/web/mastodon_api/controllers/subscription_controller_test.exs
+++ b/test/web/mastodon_api/controllers/subscription_controller_test.exs
@@ -58,7 +58,9 @@ defmodule Pleroma.Web.MastodonAPI.SubscriptionControllerTest do
result =
conn
|> post("/api/v1/push/subscription", %{
- "data" => %{"alerts" => %{"mention" => true, "test" => true}},
+ "data" => %{
+ "alerts" => %{"mention" => true, "test" => true, "pleroma:chat_mention" => true}
+ },
"subscription" => @sub
})
|> json_response_and_validate_schema(200)
@@ -66,7 +68,7 @@ defmodule Pleroma.Web.MastodonAPI.SubscriptionControllerTest do
[subscription] = Pleroma.Repo.all(Subscription)
assert %{
- "alerts" => %{"mention" => true},
+ "alerts" => %{"mention" => true, "pleroma:chat_mention" => true},
"endpoint" => subscription.endpoint,
"id" => to_string(subscription.id),
"server_key" => @server_key