mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	chore: eslint prefer-template
This commit is contained in:
		
				
					committed by
					
						 Julian Lam
						Julian Lam
					
				
			
			
				
	
			
			
			
						parent
						
							4ee0f1459d
						
					
				
				
					commit
					707b55b6a5
				
			| @@ -77,11 +77,11 @@ exports.post = async function (req, res) { | ||||
| 			throw new Error('[[error:invalid-data]]'); | ||||
| 		} | ||||
| 		if (result.queued) { | ||||
| 			return res.redirect((nconf.get('relative_path') || '/') + '?noScriptMessage=[[success:post-queued]]'); | ||||
| 			return res.redirect(`${nconf.get('relative_path') || '/'}?noScriptMessage=[[success:post-queued]]`); | ||||
| 		} | ||||
| 		const uid = result.uid ? result.uid : result.topicData.uid; | ||||
| 		user.updateOnlineUsers(uid); | ||||
| 		const path = result.pid ? '/post/' + result.pid : '/topic/' + result.topicData.slug; | ||||
| 		const path = result.pid ? `/post/${result.pid}` : `/topic/${result.topicData.slug}`; | ||||
| 		res.redirect(nconf.get('relative_path') + path); | ||||
| 	} catch (err) { | ||||
| 		helpers.noScriptErrors(req, res, err.message, 400); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user