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