mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-26 16:46:12 +01:00 
			
		
		
		
	fix: minor adjustment in logic to work around relation logic
This commit is contained in:
		| @@ -82,11 +82,12 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => { | |||||||
| 			.filter(({ type }) => type === 'category') | 			.filter(({ type }) => type === 'category') | ||||||
| 			.map(obj => obj.id); | 			.map(obj => obj.id); | ||||||
| 		if (recipientCids.length) { | 		if (recipientCids.length) { | ||||||
| 			cid = recipientCids.shift(); | 			// Overrides passed-in value, respect addressing from main post over booster | ||||||
|  | 			options.cid = recipientCids.shift(); | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		// mainPid ok to leave as-is | 		// mainPid ok to leave as-is | ||||||
| 		cid = cid || options.cid || -1; | 		cid = options.cid || -1; | ||||||
| 		title = name || activitypub.helpers.generateTitle(utils.decodeHTMLEntities(content)); | 		title = name || activitypub.helpers.generateTitle(utils.decodeHTMLEntities(content)); | ||||||
| 	} | 	} | ||||||
| 	mainPid = utils.isNumber(mainPid) ? parseInt(mainPid, 10) : mainPid; | 	mainPid = utils.isNumber(mainPid) ? parseInt(mainPid, 10) : mainPid; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user