mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 04:11:15 +00:00
Adding saved_only to GetComments and GetPosts, fixing show_nsfw.
This commit is contained in:
parent
f60c8911d3
commit
e098abce50
1 changed files with 11 additions and 7 deletions
|
@ -1976,10 +1976,7 @@ components:
|
||||||
community_id:
|
community_id:
|
||||||
$ref: "#/components/schemas/community_id"
|
$ref: "#/components/schemas/community_id"
|
||||||
saved_only:
|
saved_only:
|
||||||
type: boolean
|
$ref: "#/components/schemas/saved_only"
|
||||||
description: Forthcoming...
|
|
||||||
default: false
|
|
||||||
example: false
|
|
||||||
auth:
|
auth:
|
||||||
$ref: "#/components/schemas/authStringSchema"
|
$ref: "#/components/schemas/authStringSchema"
|
||||||
saveUserSettingsResponse:
|
saveUserSettingsResponse:
|
||||||
|
@ -3016,7 +3013,6 @@ components:
|
||||||
required:
|
required:
|
||||||
- name
|
- name
|
||||||
- title
|
- title
|
||||||
- nsfw
|
|
||||||
- auth
|
- auth
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -3197,7 +3193,6 @@ components:
|
||||||
required:
|
required:
|
||||||
- community_id
|
- community_id
|
||||||
- title
|
- title
|
||||||
- nsfw
|
|
||||||
- auth
|
- auth
|
||||||
properties:
|
properties:
|
||||||
community_id:
|
community_id:
|
||||||
|
@ -4965,6 +4960,7 @@ components:
|
||||||
required:
|
required:
|
||||||
- type_
|
- type_
|
||||||
- sort
|
- sort
|
||||||
|
- saved_only
|
||||||
properties:
|
properties:
|
||||||
type_:
|
type_:
|
||||||
$ref: "#/components/schemas/type_listing"
|
$ref: "#/components/schemas/type_listing"
|
||||||
|
@ -4978,6 +4974,8 @@ components:
|
||||||
$ref: "#/components/schemas/community_id"
|
$ref: "#/components/schemas/community_id"
|
||||||
community_name:
|
community_name:
|
||||||
$ref: "#/components/schemas/community_name"
|
$ref: "#/components/schemas/community_name"
|
||||||
|
saved_only:
|
||||||
|
$ref: "#/components/schemas/saved_only"
|
||||||
auth:
|
auth:
|
||||||
$ref: "#/components/schemas/authStringSchema"
|
$ref: "#/components/schemas/authStringSchema"
|
||||||
"matrix_user_id":
|
"matrix_user_id":
|
||||||
|
@ -5015,7 +5013,7 @@ components:
|
||||||
example: 1
|
example: 1
|
||||||
"nsfw":
|
"nsfw":
|
||||||
type: boolean
|
type: boolean
|
||||||
description: "Set to *true* if this commmunity, post or comment is deemed [NSFW](https://en.wikipedia.org/wiki/Not_safe_for_work) (hence invisble to users who have the NSFW option selected in their profile"
|
description: "Set to *true* if this commmunity, post or comment is deemed [NSFW](https://en.wikipedia.org/wiki/Not_safe_for_work) (hence invisble to users who have the NSFW option selected in their profile. If not provided, defaults to false."
|
||||||
example: false
|
example: false
|
||||||
"online":
|
"online":
|
||||||
description: Number of registered users who are currently on the system
|
description: Number of registered users who are currently on the system
|
||||||
|
@ -5319,6 +5317,12 @@ components:
|
||||||
*true* if this post or comment has been or should be saved on the user's profile
|
*true* if this post or comment has been or should be saved on the user's profile
|
||||||
type: boolean
|
type: boolean
|
||||||
example: false
|
example: false
|
||||||
|
"saved_only":
|
||||||
|
description: |-
|
||||||
|
If *true*, only fetches the saved items.
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
example: false
|
||||||
"score":
|
"score":
|
||||||
type: number
|
type: number
|
||||||
description: Forthcoming...
|
description: Forthcoming...
|
||||||
|
|
Loading…
Reference in a new issue