mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
lint: unused requires, linting fixes
This commit is contained in:
@@ -54,15 +54,10 @@ Notes.assert = async (uid, input, options = {}) => {
|
||||
|
||||
const hash = { ...postData };
|
||||
delete hash._activitypub;
|
||||
// should call internal method here to create/edit post
|
||||
await db.setObject(key, hash);
|
||||
winston.verbose(`[activitypub/notes.assert] Note ${id} saved.`);
|
||||
}
|
||||
|
||||
// odd circular modular dependency issue here...
|
||||
// if (options.update === true) {
|
||||
// require('../posts/cache').del(String(id));
|
||||
// pubsub.publish('post:edit', String(id));
|
||||
// }
|
||||
}));
|
||||
|
||||
if (actors.size) {
|
||||
|
||||
@@ -8,7 +8,6 @@ const _ = require('lodash');
|
||||
|
||||
const meta = require('../meta');
|
||||
const plugins = require('../plugins');
|
||||
const activitypub = require('../activitypub');
|
||||
const translator = require('../translator');
|
||||
const utils = require('../utils');
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
const validator = require('validator');
|
||||
|
||||
const topics = require('../../topics');
|
||||
const privileges = require('../../privileges');
|
||||
const meta = require('../../meta');
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const validator = require('validator');
|
||||
|
||||
const db = require('../database');
|
||||
const plugins = require('../plugins');
|
||||
const posts = require('../posts');
|
||||
|
||||
Reference in New Issue
Block a user