aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-11-17 20:21:48 +0000
committerMark Felder <feld@FreeBSD.org>2020-11-17 20:21:48 +0000
commit5d0bc5e028c94ab1c7ebf746b5d01af1fbef396f (patch)
treed3374c678e0f2af10b3dbd899cd7884b6f593234 /lib/pleroma/web/api_spec
parent67a6abd071fd4e9f62c032fe952b65b957140bc5 (diff)
downloadpleroma-5d0bc5e028c94ab1c7ebf746b5d01af1fbef396f.tar.gz
Support both pleroma:chat_mention and pleroma:emoji_reaction for /api/v1/push/subscription
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r--lib/pleroma/web/api_spec/operations/subscription_operation.ex10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/operations/subscription_operation.ex b/lib/pleroma/web/api_spec/operations/subscription_operation.ex
index 77e70005b..67c7ea8f3 100644
--- a/lib/pleroma/web/api_spec/operations/subscription_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/subscription_operation.ex
@@ -215,6 +215,16 @@ defmodule Pleroma.Web.ApiSpec.SubscriptionOperation do
allOf: [BooleanLike],
nullable: true,
description: "Receive poll notifications?"
+ },
+ "pleroma:chat_mention": %Schema{
+ allOf: [BooleanLike],
+ nullable: true,
+ description: "Receive chat notifications?"
+ },
+ "pleroma:emoji_reaction": %Schema{
+ allOf: [BooleanLike],
+ nullable: true,
+ description: "Receive emoji reaction notifications?"
}
}
}