mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	closes #1497
fixes user images in subfolder installs, if user image has https dont append relative_path, also removes relative_path in ajaxify.loadData so it doesnt call /forum/api/forum/category etc.
This commit is contained in:
		| @@ -122,7 +122,7 @@ var bcrypt = require('bcryptjs'), | ||||
|  | ||||
| 			if (user.picture) { | ||||
| 				if (user.picture === user.uploadedpicture) { | ||||
| 					user.picture = nconf.get('relative_path') + user.picture; | ||||
| 					user.picture = user.picture.indexOf('http') === -1 ? nconf.get('relative_path') + user.picture : user.picture; | ||||
| 				} else { | ||||
| 					user.picture = User.createGravatarURLFromEmail(user.email); | ||||
| 				} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user