mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #8410
This commit is contained in:
@@ -10,7 +10,8 @@ module.exports = function (SocketPosts) {
|
||||
const timestamps = await posts.diffs.list(data.pid);
|
||||
const cid = await posts.getCidByPid(data.pid);
|
||||
const canEdit = await privileges.categories.can('edit', cid, socket.uid);
|
||||
timestamps.unshift(Date.now());
|
||||
const postTime = await posts.getPostField(data.pid, 'timestamp');
|
||||
timestamps.push(postTime);
|
||||
return {
|
||||
timestamps: timestamps,
|
||||
editable: canEdit,
|
||||
|
||||
Reference in New Issue
Block a user