projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ability to set a default post expiry (#321)
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
operations
/
account_operation.ex
diff --git
a/lib/pleroma/web/api_spec/operations/account_operation.ex
b/lib/pleroma/web/api_spec/operations/account_operation.ex
index b305dc1ea8fb3d544efe37dae11a4bd0185be856..e20f57fec3e7bed9adbb565587344144f572406c 100644
(file)
--- a/
lib/pleroma/web/api_spec/operations/account_operation.ex
+++ b/
lib/pleroma/web/api_spec/operations/account_operation.ex
@@
-223,12
+223,12
@@
defmodule Pleroma.Web.ApiSpec.AccountOperation do
type: :object,
properties: %{
reblogs: %Schema{
type: :object,
properties: %{
reblogs: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
description: "Receive this account's reblogs in home timeline? Defaults to true.",
default: true
},
notify: %Schema{
description: "Receive this account's reblogs in home timeline? Defaults to true.",
default: true
},
notify: %Schema{
-
type: :boolean
,
+
allOf: [BooleanLike]
,
description:
"Receive notifications for all statuses posted by the account? Defaults to false.",
default: false
description:
"Receive notifications for all statuses posted by the account? Defaults to false.",
default: false
@@
-700,7
+700,13
@@
defmodule Pleroma.Web.ApiSpec.AccountOperation do
description:
"Discovery (listing, indexing) of this account by external services (search bots etc.) is allowed."
},
description:
"Discovery (listing, indexing) of this account by external services (search bots etc.) is allowed."
},
- actor_type: ActorType
+ actor_type: ActorType,
+ status_ttl_days: %Schema{
+ type: :integer,
+ nullable: true,
+ description:
+ "Number of days after which statuses will be deleted. Set to -1 to disable."
+ }
},
example: %{
bot: false,
},
example: %{
bot: false,
@@
-720,7
+726,8
@@
defmodule Pleroma.Web.ApiSpec.AccountOperation do
allow_following_move: false,
also_known_as: ["https://foo.bar/users/foo"],
discoverable: false,
allow_following_move: false,
also_known_as: ["https://foo.bar/users/foo"],
discoverable: false,
- actor_type: "Person"
+ actor_type: "Person",
+ status_ttl_days: 30
}
}
end
}
}
end