mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-11 15:47:48 +08:00
feat: 增加Twitter用户时间线的image (#2190)
* fix: 微博的description和image * 增加推特用户头像
This commit is contained in:
@@ -11,11 +11,14 @@ module.exports = async (ctx) => {
|
||||
tweet_mode: 'extended',
|
||||
});
|
||||
const data = result.data;
|
||||
const userInfo = data[0].user;
|
||||
const profileImageUrl = userInfo.profile_image_url || userInfo.profile_image_url_https;
|
||||
|
||||
ctx.state.data = {
|
||||
title: `${data[0].user.name} 的 Twitter`,
|
||||
title: `${userInfo.name} 的 Twitter`,
|
||||
link: `https://twitter.com/${id}/`,
|
||||
description: data[0].user.description,
|
||||
image: profileImageUrl,
|
||||
description: userInfo.description,
|
||||
item: utils.ProcessFeed({
|
||||
data,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user