mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
fix useless link in tweet
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = async (ctx) => {
|
||||
description: data[0].user.description,
|
||||
item: data.map((item) => {
|
||||
item = item.retweeted_status || item;
|
||||
item.full_text = item.full_text.replace(/https:\/\/t\.co(.*)$/, '');
|
||||
item.full_text = item.full_text.replace(/https:\/\/t\.co(.*)/g, '');
|
||||
let img = '';
|
||||
item.extended_entities &&
|
||||
item.extended_entities.media.forEach((item) => {
|
||||
|
||||
Reference in New Issue
Block a user