projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c0af1c
)
OpenAPI: Add `follow_request` to notification types
author
rinpatch
<rinpatch@sdf.org>
Fri, 1 May 2020 19:48:30 +0000
(22:48 +0300)
committer
rinpatch
<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
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/api_spec/operations/notification_operation.ex
b/lib/pleroma/web/api_spec/operations/notification_operation.ex
index c6514f3f23e2c7095e5cdcad39f2e5ebf901defb..64adc5319f7149b37274953ccab0397b5758a782 100644
(file)
--- 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.