Open roblanf opened 4 months ago
For context, I wanted to adapt your script to post papers from a PubMed RSS feed (e.g. https://pubmed.ncbi.nlm.nih.gov/rss/search/1pSbSzklLaRDgrBBecLaHXjj_NtDB256CbB-lTk3MQA9gZRkc4/?limit=100&utm_campaign=pubmed-2&fc=20240525000654) and links and titles can get very long!
Hi
Goodpoint I added a check if description is over 300 characters. Please check : https://github.com/St3ph-fr/apps-script-for-bluesky-social/blob/e7f639c56b55fe856ccf8e0aadb9ace82b10ba66/rss-to-bluesky.gs#L53
I also made a change in the link management better copy/paste again the full code.
Stéphane
https://github.com/St3ph-fr/apps-script-for-bluesky-social/blob/e9db7220e2dd41070bf20819ef2163f77a426343/rss-to-bluesky.gs#L56-L58
Thanks for the great medium post and apologies if this is a dumb question (just getting my head around this and google scripts oto...
In these lines, we build the post based on the link, the title, and description. However, what if these are too long to fit in the 300 character limit?
(I read through the script adn I couldn't see anywhere that takes care of trimming down posts that are too long, though I might well have missed it!)