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