test: fix openapi

This commit is contained in:
Barış Soner Uşaklı
2025-07-31 09:14:19 -04:00
parent 7c00e814b7
commit c7c83e0e4b
2 changed files with 3 additions and 0 deletions

View File

@@ -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:

View File

@@ -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,