Merge branch 'fix/notificatons-follow-request-validation' into 'develop'

OpenAPI: Add `follow_request` to notification types

Closes #1731

See merge request pleroma/pleroma!2459
This commit is contained in:
rinpatch 2020-05-01 20:22:37 +00:00
commit b1e2ad3f27

View file

@ -178,7 +178,16 @@ defp notification do
defp notification_type do defp notification_type do
%Schema{ %Schema{
type: :string, 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: """ description: """
The type of event that resulted in the notification. The type of event that resulted in the notification.