mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-08 18:19:41 +00:00
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:
commit
b1e2ad3f27
1 changed files with 10 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue