Support both pleroma:chat_mention and pleroma:emoji_reaction for /api/v1/push/subscri...
authorMark Felder <feld@FreeBSD.org>
Tue, 17 Nov 2020 20:21:48 +0000 (20:21 +0000)
committerMark Felder <feld@FreeBSD.org>
Tue, 17 Nov 2020 20:21:48 +0000 (20:21 +0000)
CHANGELOG.md
lib/pleroma/web/api_spec/operations/subscription_operation.ex

index fe1114c02d189660110863913bd57eda6a9690fe..c6cb30176c7977e006474f4658b730e7a76aab8f 100644 (file)
@@ -41,6 +41,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
 </details>
 
 ## Unreleased (Patch)
+
+### Changed
+
+- API: Empty parameter values for integer parameters are now ignored in non-strict validaton mode.
+- Fix ability to update Pleroma Chat push notifications with PUT /api/v1/push/subscription and alert type pleroma:chat_mention
+
 ### Fixed
 
 - Config generation: rename `Pleroma.Upload.Filter.ExifTool` to `Pleroma.Upload.Filter.Exiftool`.
index 77e70005b6f53a35b02affa437fbc481cbd58603..67c7ea8f3bf1145cb52254ce678a66de15533db7 100644 (file)
@@ -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?"
                 }
               }
             }