mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: pid in api call
This commit is contained in:
@@ -44,7 +44,7 @@ define('forum/topic/votes', [
|
||||
$this.attr('title', '');
|
||||
}
|
||||
|
||||
api.get(`/posts/${pid}/upvoters`, {}, function (err, data) {
|
||||
api.get(`/posts/${encodeURIComponent(pid)}/upvoters`, {}, function (err, data) {
|
||||
if (err) {
|
||||
return alerts.error(err);
|
||||
}
|
||||
@@ -110,7 +110,7 @@ define('forum/topic/votes', [
|
||||
if (!canSeeVotes()) {
|
||||
return;
|
||||
}
|
||||
api.get(`/posts/${pid}/voters`, {}, function (err, data) {
|
||||
api.get(`/posts/${encodeURIComponent(pid)}/voters`, {}, function (err, data) {
|
||||
if (err) {
|
||||
return alerts.error(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user