mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 23:27:54 -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 => {
|
||||
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