summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-05-01 22:48:30 +0300
committerrinpatch <rinpatch@sdf.org>2020-05-01 23:14:20 +0300
commitc18ef452b05355cfd573e989cad776376c4b4757 (patch)
tree856fd1f127e7249ab86f1697f0bfb53e60deea20
parent4c0af1cb66de078953c36d57b32be6e23744e7c0 (diff)
OpenAPI: Add `follow_request` to notification types
Closes #1731
-rw-r--r--lib/pleroma/web/api_spec/operations/notification_operation.ex11
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.