mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 13:20:41 +01:00
store number of announces on post hash, show announces like votes, with tooltip and a way to see all, remove them from topic.events so they dont load all tid:<tid>:posts everytime topic is loaded
34 lines
841 B
YAML
34 lines
841 B
YAML
get:
|
|
tags:
|
|
- posts
|
|
summary: get announcers of a post
|
|
description: This is used for getting a list of usernames for the announcers tooltip
|
|
parameters:
|
|
- in: path
|
|
name: pid
|
|
schema:
|
|
type: string
|
|
required: true
|
|
description: a valid post id
|
|
example: 2
|
|
responses:
|
|
'200':
|
|
description: Usernames of announcers of post
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
status:
|
|
$ref: ../../../components/schemas/Status.yaml#/Status
|
|
response:
|
|
type: object
|
|
properties:
|
|
otherCount:
|
|
type: number
|
|
usernames:
|
|
type: array
|
|
cutoff:
|
|
type: number
|
|
|