test: fix openapi

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

View File

@@ -37,6 +37,8 @@ get:
type: string
username:
type: string
uid:
type: string
editable:
type: boolean
deletable:

View File

@@ -515,6 +515,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,