IceCubesApp icon indicating copy to clipboard operation
IceCubesApp copied to clipboard

Option to hide raw web links in posts

Open vanitalo opened this issue 2 years ago • 2 comments

Can you please add an option in settings to allow hiding of the http/s web links in posts when there is a preview rendered in the post. This would make each post in the timeline look cleaner. F5F1FA5E-F261-4721-AD70-9909ACB90635

vanitalo avatar Jan 21 '23 10:01 vanitalo

I believe Twitter specifically hides the raw link if it’s the last thing in a tweet and not otherwise. Worth keeping in mind. Removing an inline link if the preview is still at the end could get weird :)

henrik avatar Jan 22 '23 14:01 henrik

The HTML returned in the post should contain span.invisible at certain points of the URL, so you could search for it that way. Or, depending on how you render it in-app, you can just set the invisible class to not display.

antijingoist avatar Jan 23 '23 03:01 antijingoist