mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Change the endpoint for loading single comments
This commit is contained in:
parent
96bc439ab0
commit
3c7b090a1f
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 => {
|
||||
dispatch(module.exports.setFetchStatus('comments', module.exports.Status.FETCHING));
|
||||
api({
|
||||
uri: `${isAdmin ? '/admin' : ''}/projects/comments/${commentId}`,
|
||||
uri: `${isAdmin ? '/admin' : ''}/projects/${projectId}/comments/${commentId}`,
|
||||
authentication: isAdmin ? token : null
|
||||
}, (err, body) => {
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in a new issue