mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
Navigator (#9049)
* feat: navigator changes * fix: remove extra code * feat: add lang keys
This commit is contained in:
committed by
GitHub
parent
648f6215ef
commit
6669496dba
@@ -71,7 +71,7 @@ SocketPosts.getRawPost = async function (socket, pid) {
|
||||
return result.postData.content;
|
||||
};
|
||||
|
||||
SocketPosts.getTimestampByIndex = async function (socket, data) {
|
||||
SocketPosts.getPostSummaryByIndex = async function (socket, data) {
|
||||
if (data.index < 0) {
|
||||
data.index = 0;
|
||||
}
|
||||
@@ -90,7 +90,9 @@ SocketPosts.getTimestampByIndex = async function (socket, data) {
|
||||
if (!canRead) {
|
||||
throw new Error('[[error:no-privileges]]');
|
||||
}
|
||||
return await posts.getPostField(pid, 'timestamp');
|
||||
|
||||
const postsData = await posts.getPostSummaryByPids([pid], socket.uid, { stripTags: true });
|
||||
return postsData[0];
|
||||
};
|
||||
|
||||
SocketPosts.getPost = async function (socket, pid) {
|
||||
|
||||
Reference in New Issue
Block a user