From: rinpatch Date: Fri, 1 May 2020 19:48:30 +0000 (+0300) Subject: OpenAPI: Add `follow_request` to notification types X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=c18ef452b05355cfd573e989cad776376c4b4757;p=akkoma OpenAPI: Add `follow_request` to notification types Closes #1731 --- diff --git a/lib/pleroma/web/api_spec/operations/notification_operation.ex b/lib/pleroma/web/api_spec/operations/notification_operation.ex index c6514f3f2..64adc5319 100644 --- 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.