lint: fix eslint errors

This commit is contained in:
Julian Lam
2024-01-22 13:51:06 -05:00
parent 76c6e30282
commit 47b3ffb9b1
3 changed files with 0 additions and 6 deletions

View File

@@ -44,10 +44,6 @@ controller.get = async function (req, res, next) {
* Ideally we would use the existing topicsController.get... * Ideally we would use the existing topicsController.get...
* this controller may be a stopgap towards that end goal. * this controller may be a stopgap towards that end goal.
*/ */
// const pid = await notes.resolveId(req.uid, req.query.resource);
// if (pid !== req.query.resource) {
// return helpers.redirect(res, `/topic/remote?resource=${pid}`, true);
// }
const tid = req.params.topic_id; const tid = req.params.topic_id;
let postIndex = parseInt(req.params.post_index, 10) || 1; let postIndex = parseInt(req.params.post_index, 10) || 1;

View File

@@ -18,7 +18,6 @@ const privileges = require('../privileges');
const cacheCreate = require('../cache/lru'); const cacheCreate = require('../cache/lru');
const helpers = require('./helpers'); const helpers = require('./helpers');
const api = require('../api'); const api = require('../api');
const activitypub = require('../activitypub');
const controllers = { const controllers = {
api: require('../controllers/api'), api: require('../controllers/api'),

View File

@@ -11,7 +11,6 @@ const meta = require('../meta');
const user = require('../user'); const user = require('../user');
const categories = require('../categories'); const categories = require('../categories');
const privileges = require('../privileges'); const privileges = require('../privileges');
const activitypub = require('../activitypub');
const social = require('../social'); const social = require('../social');
const Topics = module.exports; const Topics = module.exports;