logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma
commit: b1e2ad3f27181f820cab8b94f338e464448b8ef2
parent: 4c0af1cb66de078953c36d57b32be6e23744e7c0
Author: rinpatch <rinpatch@sdf.org>
Date:   Fri,  1 May 2020 20:22:37 +0000

Merge branch 'fix/notificatons-follow-request-validation' into 'develop'

OpenAPI: Add `follow_request` to notification types

Closes #1731

See merge request pleroma/pleroma!2459

Diffstat:

Mlib/pleroma/web/api_spec/operations/notification_operation.ex11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/lib/pleroma/web/api_spec/operations/notification_operation.ex b/lib/pleroma/web/api_spec/operations/notification_operation.ex @@ -178,7 +178,16 @@ defmodule Pleroma.Web.ApiSpec.NotificationOperation do defp notification_type do %Schema{ type: :string, - enum: ["follow", "favourite", "reblog", "mention", "poll", "pleroma:emoji_reaction", "move"], + enum: [ + "follow", + "favourite", + "reblog", + "mention", + "poll", + "pleroma:emoji_reaction", + "move", + "follow_request" + ], description: """ The type of event that resulted in the notification.