mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	closes #6568
This commit is contained in:
		@@ -323,7 +323,7 @@ function addOGImageTagsForPosts(res, posts) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
function addOGImageTag(res, imageUrl) {
 | 
					function addOGImageTag(res, imageUrl) {
 | 
				
			||||||
	if (typeof imageUrl === 'string' && !imageUrl.startsWith('http')) {
 | 
						if (typeof imageUrl === 'string' && !imageUrl.startsWith('http')) {
 | 
				
			||||||
		imageUrl = nconf.get('url') + imageUrl;
 | 
							imageUrl = nconf.get('url') + imageUrl.replace(new RegExp('^' + nconf.get('relative_path')), '');
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	res.locals.metaTags.push({
 | 
						res.locals.metaTags.push({
 | 
				
			||||||
		property: 'og:image',
 | 
							property: 'og:image',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user