Hotfix: 修复 twitter 链接内容为空问题 (#941)

- 修复 #805 
- 手头没有 twitter 的那些 key,暂时没去验证(逃
This commit is contained in:
凉凉 2018-10-23 23:57:15 +08:00 committed by DIYgod
parent f3fc959048
commit 7ba151d423
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ module.exports = async (ctx) => {
});
let url = '';
item.entities.urls.forEach((u) => {
url += `<a href="${u.expanded_url}" target="_blank"></a>`;
url += `<a href="${u.expanded_url}" target="_blank">${u.expanded_url}</a>`;
});
return {
title: `${item.in_reply_to_screen_name ? 'Re ' : ''}${item.full_text}`,