logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 5d0bc5e028c94ab1c7ebf746b5d01af1fbef396f
parent 67a6abd071fd4e9f62c032fe952b65b957140bc5
Author: Mark Felder <feld@FreeBSD.org>
Date:   Tue, 17 Nov 2020 20:21:48 +0000

Support both pleroma:chat_mention and pleroma:emoji_reaction for /api/v1/push/subscription

Diffstat:

MCHANGELOG.md6++++++
Mlib/pleroma/web/api_spec/operations/subscription_operation.ex10++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -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`. diff --git 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?" } } }