Commit 276fc659 authored by 陈家荣's avatar 陈家荣

更改文章分享标题和图片

parent 3a08fc4a
......@@ -359,7 +359,14 @@ router.get('/sharev2.js', function(req, res, next) {
break;
}
desc = thread.content?thread.content.replace(/<\/?.+?>/g,"").replace(/&nbsp;/g,""):'';
imgUrl = thread.from.displayIcon || thread.from.icon || thread.info.icon;
// 分享图标:帖子带图片则使用第一张图片,否则使用发帖者的头像
if(thread.images && thread.images[0]){
imgUrl = thread.images[0];
}else{
imgUrl = thread.from.displayIcon || thread.from.icon || thread.info.icon;
}
link += baseParamsUrl;
//获取分享设置
if (thread.share_type!==2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment