mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	fix: lint
This commit is contained in:
		| @@ -361,7 +361,6 @@ Helpers.generateCollection = async ({ set, method, page, perPage, url }) => { | |||||||
| 		method = db.getSortedSetRange; | 		method = db.getSortedSetRange; | ||||||
| 	} | 	} | ||||||
| 	const count = await db.sortedSetCard(set); | 	const count = await db.sortedSetCard(set); | ||||||
| 	// const { cid, titleRaw: name, mainPid, slug, postcount: count } = await topics.getTopicFields(req.params.tid, ['cid', 'title', 'mainPid', 'slug', 'postcount']); |  | ||||||
| 	const pageCount = Math.max(1, Math.ceil(count / perPage)); | 	const pageCount = Math.max(1, Math.ceil(count / perPage)); | ||||||
| 	let items; | 	let items; | ||||||
| 	let paginate = true; | 	let paginate = true; | ||||||
|   | |||||||
| @@ -85,12 +85,12 @@ Actors.replies = async function (req, res) { | |||||||
| 		id: `${nconf.get('url')}/post/${req.params.pid}/replies${replies.orderedItems && page ? `?page=${page}` : ''}`, | 		id: `${nconf.get('url')}/post/${req.params.pid}/replies${replies.orderedItems && page ? `?page=${page}` : ''}`, | ||||||
| 		url: `${nconf.get('url')}/post/${req.params.pid}`, | 		url: `${nconf.get('url')}/post/${req.params.pid}`, | ||||||
| 		...replies, | 		...replies, | ||||||
| 	} | 	}; | ||||||
|  |  | ||||||
| 	res.status(200).json(object); | 	res.status(200).json(object); | ||||||
| }; | }; | ||||||
|  |  | ||||||
| Actors.topic = async function (req, res, next) { | Actors.topic = async function (req, res) { | ||||||
| 	const allowed = await privileges.topics.can('topics:read', req.params.tid, activitypub._constants.uid); | 	const allowed = await privileges.topics.can('topics:read', req.params.tid, activitypub._constants.uid); | ||||||
| 	if (!allowed) { | 	if (!allowed) { | ||||||
| 		return res.sendStatus(404); | 		return res.sendStatus(404); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user