diff options
author | rinpatch <rinpatch@sdf.org> | 2020-05-01 20:22:37 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-05-01 20:22:37 +0000 |
commit | b1e2ad3f27181f820cab8b94f338e464448b8ef2 (patch) | |
tree | 856fd1f127e7249ab86f1697f0bfb53e60deea20 | |
parent | 4c0af1cb66de078953c36d57b32be6e23744e7c0 (diff) | |
parent | c18ef452b05355cfd573e989cad776376c4b4757 (diff) | |
download | pleroma-b1e2ad3f27181f820cab8b94f338e464448b8ef2.tar.gz |
Merge branch 'fix/notificatons-follow-request-validation' into 'develop'
OpenAPI: Add `follow_request` to notification types
Closes #1731
See merge request pleroma/pleroma!2459
-rw-r--r-- | lib/pleroma/web/api_spec/operations/notification_operation.ex | 11 |
1 files changed, 10 insertions, 1 deletions
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. |