mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature/frontend] Better visual separation between "main" thread and "replies" (#3093)
* [feature/frontend] Better web threading model * fix test * bwap * tweaks * more tweaks to wording * typo * indenting * adjust wording * aaa
This commit is contained in:
@@ -2516,24 +2516,6 @@ definitions:
|
||||
type: object
|
||||
x-go-name: Status
|
||||
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
|
||||
statusContext:
|
||||
properties:
|
||||
ancestors:
|
||||
description: Parents in the thread.
|
||||
items:
|
||||
$ref: '#/definitions/status'
|
||||
type: array
|
||||
x-go-name: Ancestors
|
||||
descendants:
|
||||
description: Children in the thread.
|
||||
items:
|
||||
$ref: '#/definitions/status'
|
||||
type: array
|
||||
x-go-name: Descendants
|
||||
title: Context models the tree around a given status.
|
||||
type: object
|
||||
x-go-name: Context
|
||||
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
|
||||
statusEdit:
|
||||
description: |-
|
||||
StatusEdit represents one historical revision of a status, containing
|
||||
@@ -2887,6 +2869,26 @@ definitions:
|
||||
type: object
|
||||
x-go-name: Theme
|
||||
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
|
||||
threadContext:
|
||||
description: |-
|
||||
ThreadContext models the tree or
|
||||
"thread" around a given status.
|
||||
properties:
|
||||
ancestors:
|
||||
description: Parents in the thread.
|
||||
items:
|
||||
$ref: '#/definitions/status'
|
||||
type: array
|
||||
x-go-name: Ancestors
|
||||
descendants:
|
||||
description: Children in the thread.
|
||||
items:
|
||||
$ref: '#/definitions/status'
|
||||
type: array
|
||||
x-go-name: Descendants
|
||||
type: object
|
||||
x-go-name: ThreadContext
|
||||
x-go-package: github.com/superseriousbusiness/gotosocial/internal/api/model
|
||||
user:
|
||||
properties:
|
||||
admin:
|
||||
@@ -8149,7 +8151,7 @@ paths:
|
||||
/api/v1/statuses/{id}/context:
|
||||
get:
|
||||
description: The returned statuses will be ordered in a thread structure, so they are suitable to be displayed in the order in which they were returned.
|
||||
operationId: statusContext
|
||||
operationId: threadContext
|
||||
parameters:
|
||||
- description: Target status ID.
|
||||
in: path
|
||||
@@ -8160,9 +8162,9 @@ paths:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Status context object.
|
||||
description: Thread context object.
|
||||
schema:
|
||||
$ref: '#/definitions/statusContext'
|
||||
$ref: '#/definitions/threadContext'
|
||||
"400":
|
||||
description: bad request
|
||||
"401":
|
||||
|
Reference in New Issue
Block a user