I've seen some posts include a tweet, and it appears as it would on twitter.com. When I include a twitter link, the post only shows the hyperlink. Can anyone show me the way? Is the 'trick' transferrable for other platforms linked to?
pull down to refresh
25 sats \ 3 replies \ @cointastical 22 Apr 2022
There are two types of posts on SN, ... Link posts and Discussion posts. On a Discussion post, there's no automatic rendering if you include the URL for a Tweet.
For link posts, SN has added a Twitter embed feature.
Thus when you view an SN item that is a Link post using the URL for a Tweet, it will have an embed area near the top where there is Twitter embed code that renders the Tweet nearly identically to how it looks in Twitter. But because heights of a Tweet can vary, that embed can get cut off at a certain height, and to see the full Tweet you need to click Show Full Tweet.
This works for posts that are for a Tweet with an image or images, with an audio, and with a video as well. Essentially, however it appears on Twitter.com is how it will look in the embed.
I can't say that I've seen a Twitter URL that didn't render in the embed. It's possible that could occur, I've just not seen it. Maybe your Twitter link was messed up somehow?
Now for meme images and such, a Twitter embed that gets cut off halfway (until you click "Show full Tweet" kind of sucks. A meme image hits best when seen in its entirety, and all at once -- no interaction.
On of the earliest feature requests in the Stacker News Github repo (Issue #9) is for additional post types, including Image and Video (uploads, I think). That requires storage for hosting / CDN and such, so I can see why that hasn't been added just yet, especially when there's a workaround: markdown supports images
Why is there no option to upload an image to these SN posts?
#11538
So if you want an SN item to be an image, simply create a Discussion post and use the markdown for image and in that use the image's URL.
reply
10 sats \ 1 reply \ @guyfawkes OP 22 Apr 2022
Thanks for your comprehensive explanation. Looking at your bio, I learned that we all have a stacker.news lighting address. 🤯You are a definite follow.
reply
0 sats \ 0 replies \ @247bf84fda 25 Aug freebie
deleted by author
0 sats \ 0 replies \ @247bf84fda 25 Aug freebie
deleted by author
5 sats \ 1 reply \ @k00b 22 Apr 2022
It only works for twitter and you have to share a link to a tweet for it to work. The link also has to be shared as a link post.
reply
0 sats \ 0 replies \ @247bf84fda 25 Aug freebie
deleted by author
0 sats \ 0 replies \ @247bf84fda 25 Aug freebie
deleted by author