aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/operations/notification_operation.ex
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-06-23 20:55:14 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-06-23 20:55:14 +0300
commitccf5442d1467b080d1e52f5180b4e22db51caf12 (patch)
tree30d92236e03c04a5cda1c1f5d0a0f584c1757f28 /lib/pleroma/web/api_spec/operations/notification_operation.ex
parent7a56664ffad9869540e2d68a4130454b92d2156f (diff)
parentc7d69e925664ce7125c3938c298d72e94a2a1349 (diff)
downloadpleroma-ccf5442d1467b080d1e52f5180b4e22db51caf12.tar.gz
Merge develop
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/notification_operation.ex')
-rw-r--r--lib/pleroma/web/api_spec/operations/notification_operation.ex10
1 files changed, 9 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 41328b5f2..f09be64cb 100644
--- a/lib/pleroma/web/api_spec/operations/notification_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/notification_operation.ex
@@ -163,6 +163,13 @@ defmodule Pleroma.Web.ApiSpec.NotificationOperation do
description:
"Status that was the object of the notification, e.g. in mentions, reblogs, favourites, or polls.",
nullable: true
+ },
+ pleroma: %Schema{
+ type: :object,
+ properties: %{
+ is_seen: %Schema{type: :boolean},
+ is_muted: %Schema{type: :boolean}
+ }
}
},
example: %{
@@ -170,7 +177,8 @@ defmodule Pleroma.Web.ApiSpec.NotificationOperation do
"type" => "mention",
"created_at" => "2019-11-23T07:49:02.064Z",
"account" => Account.schema().example,
- "status" => Status.schema().example
+ "status" => Status.schema().example,
+ "pleroma" => %{"is_seen" => false, "is_muted" => false}
}
}
end