server/core/controllers/api/videos/comment.ts
Function listVideoThreads
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function listVideoThreads (req: express.Request, res: express.Response) {
const video = res.locals.onlyVideo
const user = res.locals.oauth ? res.locals.oauth.token.User : undefined
let resultList: ThreadsResultList<MCommentFormattable>
Function listVideoThreadComments
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function listVideoThreadComments (req: express.Request, res: express.Response) {
const video = res.locals.onlyVideo
const user = res.locals.oauth ? res.locals.oauth.token.User : undefined
let resultList: ResultList<MCommentFormattable>