mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: fix openapi
This commit is contained in:
@@ -37,6 +37,8 @@ get:
|
|||||||
type: string
|
type: string
|
||||||
username:
|
username:
|
||||||
type: string
|
type: string
|
||||||
|
uid:
|
||||||
|
type: string
|
||||||
editable:
|
editable:
|
||||||
type: boolean
|
type: boolean
|
||||||
deletable:
|
deletable:
|
||||||
|
|||||||
@@ -517,6 +517,7 @@ postsAPI.getDiffs = async (caller, data) => {
|
|||||||
revisions: timestamps.map((timestamp, idx) => ({
|
revisions: timestamps.map((timestamp, idx) => ({
|
||||||
timestamp: timestamp,
|
timestamp: timestamp,
|
||||||
username: usernames[idx],
|
username: usernames[idx],
|
||||||
|
uid: uids[idx],
|
||||||
})),
|
})),
|
||||||
// Only admins, global mods and moderator of that cid can delete a diff
|
// Only admins, global mods and moderator of that cid can delete a diff
|
||||||
deletable: isAdmin || isModerator,
|
deletable: isAdmin || isModerator,
|
||||||
|
|||||||
Reference in New Issue
Block a user