mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge pull request #2488 from paulkaplan/change-comment-endpoint
Change the endpoint for loading single comments
This commit is contained in:
commit
8ea6a9782f
1 changed files with 1 additions and 1 deletions
|
@ -481,7 +481,7 @@ module.exports.getTopLevelComments = (id, offset, isAdmin, token) => (dispatch =
|
||||||
module.exports.getCommentById = (projectId, commentId, isAdmin, token) => (dispatch => {
|
module.exports.getCommentById = (projectId, commentId, isAdmin, token) => (dispatch => {
|
||||||
dispatch(module.exports.setFetchStatus('comments', module.exports.Status.FETCHING));
|
dispatch(module.exports.setFetchStatus('comments', module.exports.Status.FETCHING));
|
||||||
api({
|
api({
|
||||||
uri: `${isAdmin ? '/admin' : ''}/projects/comments/${commentId}`,
|
uri: `${isAdmin ? '/admin' : ''}/projects/${projectId}/comments/${commentId}`,
|
||||||
authentication: isAdmin ? token : null
|
authentication: isAdmin ? token : null
|
||||||
}, (err, body) => {
|
}, (err, body) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|
Loading…
Reference in a new issue