mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
changes bookmark storage to sortedset, gets uid from socket rather than being passed from client
This commit is contained in:
@@ -203,12 +203,11 @@ define('forum/topic', [
|
||||
|
||||
if (!currentBookmark || parseInt(postIndex, 10) > parseInt(currentBookmark, 10)) {
|
||||
if (app.user.uid) {
|
||||
var data = {
|
||||
'tid': ajaxify.data.tid,
|
||||
'uid': app.user.uid,
|
||||
'postIndex': postIndex
|
||||
}
|
||||
socket.emit('topics.bookmark', data, function(err) {
|
||||
var payload = {
|
||||
'tid': ajaxify.data.tid,
|
||||
'index': postIndex
|
||||
};
|
||||
socket.emit('topics.bookmark', payload, function(err) {
|
||||
if (err) {
|
||||
console.warn('Error saving bookmark:', err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user