|
|
@ -67,7 +67,7 @@ define('forum/topic/votes', ['components', 'translator'], function (components,
|
|
|
|
|
|
|
|
|
|
|
|
socket.emit(currentState ? 'posts.unvote' : method, {
|
|
|
|
socket.emit(currentState ? 'posts.unvote' : method, {
|
|
|
|
pid: post.attr('data-pid'),
|
|
|
|
pid: post.attr('data-pid'),
|
|
|
|
room_id: app.currentRoom,
|
|
|
|
room_id: 'topic_' + ajaxify.data.tid,
|
|
|
|
}, function (err) {
|
|
|
|
}, function (err) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
if (err.message === 'self-vote') {
|
|
|
|
if (err.message === 'self-vote') {
|
|
|
|