From 1071ac0cea6b00d669bae2e4afc4c20e982dd684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 31 Jul 2025 09:14:19 -0400 Subject: [PATCH] test: fix openapi --- public/openapi/write/posts/pid/diffs.yaml | 2 ++ src/api/posts.js | 1 + 2 files changed, 3 insertions(+) diff --git a/public/openapi/write/posts/pid/diffs.yaml b/public/openapi/write/posts/pid/diffs.yaml index ea76f7ea66..524167bc6f 100644 --- a/public/openapi/write/posts/pid/diffs.yaml +++ b/public/openapi/write/posts/pid/diffs.yaml @@ -37,6 +37,8 @@ get: type: string username: type: string + uid: + type: string editable: type: boolean deletable: diff --git a/src/api/posts.js b/src/api/posts.js index 3689ef03ed..54454e6e52 100644 --- a/src/api/posts.js +++ b/src/api/posts.js @@ -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,