voting not working
-
Hi there,
Can you please provide the following information to help us debug?
- Server or client operating system (if applicable)
- NodeBB version and hash
- To get the hash, run
git rev-parse HEAD
from the root of your NodeBB folder
- To get the hash, run
- If applicable, theme versions
npm ls nodebb-theme-persona
- Do you see any errors in the client-side?
Thanks!
-
This rings a bell, I think I fixed this recently. Can you update to latest 0.7x and latest lavender and let me know?
EDIT: lav's dependant on vanilla as well so update that too please
-
I found the error is come from favouriteCommand, and added some debug output:
function favouriteCommand(socket, command, eventName, notification, data, callback) { winston.info('command=`' + JSON.stringify(command) ); winston.info('eventName=`' + JSON.stringify(eventName) ); winston.info('notification=`' + JSON.stringify(notification) ); winston.info('data=`' + JSON.stringify(data) ); if(!data || !data.pid || !data.room_id) { winston.error('favouriteCommand invalid-data'); return callback(new Error('[[error:invalid-data]]')); }
-
the debug output as below:
4/6 03:55 [387] - info: command=`"upvote" 4/6 03:55 [387] - info: eventName=`"voted" 4/6 03:55 [387] - info: notification=`"notifications:upvoted_your_post_in" 4/6 03:55 [387] - info: data=`{"pid":"85","room_id":""} 4/6 03:55 [387] - error: favouriteCommand invalid-data
Does anyone have idea what's going wrong?
Copyright © 2024 NodeBB | Contributors