Node.js based forum software built for the modern web
closes #5977
Barış Soner Uşaklı67ba6bb820fb
diff --git a/src/controllers/topics.js b/src/controllers/topics.jsindex 347ae8e847..d3a4846390 100644--- a/src/controllers/topics.js+++ b/src/controllers/topics.js@@ -227,6 +227,8 @@ function addTags(topicData, req, res) {var ogImageUrl = '';if (topicData.thumb) {ogImageUrl = topicData.thumb;+ } else if (topicData.category.backgroundImage && (!postAtIndex || !postAtIndex.index)) {+ ogImageUrl = topicData.category.backgroundImage;} else if (postAtIndex && postAtIndex.user && postAtIndex.user.picture) {ogImageUrl = postAtIndex.user.picture;} else if (meta.config['og:image']) {