Small improvement to disable item title in content sent
husimo opened this issue · 2 comments
Hello,
I just made a little tweak, disabling the item title to being sent. Indeed, I'm using "rss-bridge" to be able to follow twittos using RSS feeds. Nonetheless, the bridge uses part of the tweet content as title.
Consequently, then using rss-to-activity-pub you have something like this :

You have twice the same tweet.
So I changed a little bit the file updateFeeds.js, replacing :
let message = `<p><a href="${item.link}">${item.title}</a></p><p>${item.content || ''}</p>`;by
let message;
if(item.link.match('/twitter.com/')) {
message = `${item.content}`;
}
else {
message = `<p><a href="${item.link}">${item.title}</a></p><p>${item.content || ''}</p>`;
}So if the item links to twitter.com, only the content of item is sent to Mastodon. See how it is rendering :
Don't know if it can be useful in the code but I thought maybe somebody could be interested to doing the same thing.
I know it's not a good place to share a tweak and I'm sorry, I didn't know anywhere else to put it.
Have a nice day
Thanks! Very usefull for me as I'm also using RRS-Bridge
Fixed, thanks!
