OpenAPI: Add `follow_request` to notification types
authorrinpatch <rinpatch@sdf.org>
Fri, 1 May 2020 19:48:30 +0000 (22:48 +0300)
committerrinpatch <rinpatch@sdf.org>
Fri, 1 May 2020 20:14:20 +0000 (23:14 +0300)
Closes #1731

lib/pleroma/web/api_spec/operations/notification_operation.ex

index c6514f3f23e2c7095e5cdcad39f2e5ebf901defb..64adc5319f7149b37274953ccab0397b5758a782 100644 (file)
@@ -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.