zedeus / nitter

Alternative Twitter front-end
https://nitter.net
GNU Affero General Public License v3.0
9.92k stars 530 forks source link

Link Preview in RSS -feed - text missing #679

Open hermann-san opened 2 years ago

hermann-san commented 2 years ago

Hi there, In Nitter there is a link preview for a Tweet and it has an image and text. However, when I generate a RSS-Feed for that Twitter user and check in my RSS Reader, then the preview text is missing. I wonder if it is possible to include the preview text in the RSS-Feed as well. It has valuable information about the link and helps deciding whether it's worth clicking on it or not. Thanks.

Nitter Link Prevew with Image preview and Link text preview Auswahl_005

RSS-Feed Reader Liferea (preview text missing) Auswahl_006

BTW. I wonder if you can provide some information on how you've implemented the link preview feature in Nitter. The developer of RSS-Bridge is considering to implement that feature as well but would need so technical idea on how to do it. Thanks again https://github.com/RSS-Bridge/rss-bridge/issues/2430

jackyzy823 commented 2 years ago

BTW. I wonder if you can provide some information on how you've implemented the link preview feature in Nitter.

Here (just parse card object of a tweet response ) : https://github.com/zedeus/nitter/blob/5f31e86e0e8578377fa7d5aeb9631bbb2d35ef1e/src/parser.nim#L132-L187

if it is possible to include the preview text in the RSS-Feed as well.

Yes. Just add card.title and card.text here https://github.com/zedeus/nitter/blob/5f31e86e0e8578377fa7d5aeb9631bbb2d35ef1e/src/views/rss.nimf#L51-L56

hermann-san commented 2 years ago

@jackyzy823 thanks for your pointer and hints. regarding the card.text and card.title info, am I right in assuming that I have to use my own Nitter installation to get this working? Currently I use nitter.net to get the feed.

jackyzy823 commented 2 years ago

@hermann-san

am I right in assuming that I have to use my own Nitter installation to get this working?

Yes , modify and compile then run.

hermann-san commented 2 years ago

I've never compiled apps and I'm not a dev. I would probably use Nittter via Yunohost. I will see if that works for me. Thanks for your help so far.