codiak / socialarchive-dapp

Dapp built on Swarm to back-up and interact with Twitter data.
GNU General Public License v3.0
2 stars 3 forks source link

Our message formatting for Likes looks different from Twitter #50

Open ameer-clara opened 2 years ago

ameer-clara commented 2 years ago

see ours:

Screen Shot 2022-02-06 at 4 55 09 PM

vs twitter:

Screen Shot 2022-02-06 at 4 55 18 PM
codiak commented 2 years ago

This is due to only having this data within the archive:

like: [
{ 
     expandedUrl: "https://twitter.com/i/web/status/1474183295852187651"
     fullText: "āŸ  Latest Week in Ethereum News!\n\nā­ @icebearhww PoW switch off consensus upgrade named Bellatrix\nšŸ’¼ @SAP joins @EntEthAlliance / @baselineproto\nšŸŽ‰ @Ethereum teams Q4 achievements\n\nhttps://t.co/zMF41qIpnD\n\nThanks to @kwenta_io & @synthetix_io for making this issue possible šŸ™"
     tweetId: "1474183295852187651"
},
{
     tweetId: '1451676767391989765',
     fullText: '@SocialArchiveCo https://t.co/8o8L9ARpe2', 
     expandedUrl: 'https://twitter.com/i/web/status/1451676767391989765...
},
...

We would need to pull/scrape more data to show more.

ameer-clara commented 2 years ago

\n could be replaced with <br/><br/> to get better readability

ameer-clara commented 2 years ago

Great point about displaying link metadata / preview. Let's limit scope to formatting text, i.e line breaks and converting @ to twitter links.