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,