#dev 2026-02-28

2026-02-28 UTC
gRegor, comengdude and comengdude1 joined the channel
#
ulhar4409
testing on some link preview stuff in discord and twitter:card is so cursed
#
ulhar4409
if you set it to summary_large_image you get a nice preview for exactly one image. discord doesn't show any more images after that
#
ulhar4409
but if you remove the twitter:card property altogether it shows all of the og:images
#
ulhar4409
ok, so maybe don't include it unless you specifically want to set it to `summary`?
#
ulhar4409
but then if you want to use og:video instead you have to include twitter:card again 🫠
#
ulhar4409
probably i'll just give my template an `attachments` argument that links to all the images or videos that should appear in previews, then choose how to approach twitter:card based on how many there are (0? use summary; 1? use summary_large_image; else don't bother)
blacklight and grufwub joined the channel
#
gRegor
It's 2026, who needs Twitter link previews? :)
#
ulhar4409
yeah i don't *specifically* need twitter previews
#
ulhar4409
i am more interested in making previews for Discord since i still use it
#
ulhar4409
and posting links to art posts is pretty common in my social circles
#
ulhar4409
and discord previews seem to be influenced by the markup designed by twitter :P
#
gRegor
Yeah, vanilla OGP tags should work for that
#
gRegor
That's wild they adopted the Twitter version, hah
#
gRegor
Does Discord have a scrape/preview tool like Facebook does?
#
gRegor
It's been a couple years, but when I last used it at work, I did the basic OGP and added the twitter:summary_large_image and it worked across FB and Twitter. This was for work, so Discord wasn't a consideration.
#
ulhar4409
not exactly; to test a link i just post it in a private channel and (for repeat attempts) put a random query string for cachebusting purposes
#
gRegor
I'd still be inclined to treat that^ as "good enough" heh. If the FB and Twitter preview looked good, I trusted it should in genreal
#
gRegor
Makes sense
#
gRegor
We were also only doing one image per a page, so less room for errors I guess
#
ulhar4409
comically, i accidentally put og:photo instead of og:image a minute ago :P
#
ulhar4409
i also probably won't have more than one image for *most* previews but i could see it being something that'd come up
#
ulhar4409
say, if i include multiple pages for a comic or such
#
gRegor
TIL about https://wordpress.org/plugins/open-graph-protocol-tools/ [artlung], maybe you already saw but I noticed it's warning it hasn't been tested with last 3 versions of WordPress
#
ulhar4409
oh also, one thing i'm curious about: does `pre` carry any semantic meaning that would make it unsuitable for `p-content`?
#
osteophage
gRegor: Tool for testing Discord link previews: https://www.opengraphpreview.com/
sinxneo joined the channel
#
gRegor
Yeah I know of some generic ones, was more curious if Discord has their own, since each can be slightly different. That's why I like using Facebook's debugger so I know they look good on FB.
#
[artlung]
Yeah, OGP tools needs latest WP version attention in theory [gRegorLove] though it works fine regardless.
#
gRegor
opengraph.xyz is another one
Kupietz, pata, cotsuka, jonnybarnes, blacklight, andres1, Frugo, proofreed, thegreekgeek, luca, barnaby, shoesNsocks, gRegorLove_, [tw2113], btrem and kleb60 joined the channel
#
btrem
I really hate Drupal today. I know I say that a lot, but today's is a special hate. Way too complex to explain in IRC. In fact, I'm having a hard time explaining it on Drupal Stack Exchange. But suffice to say that it has a distinct touch of Microsoft "we know what you want, we'll do it for you" that is unintuitive and frankly maddening.
#
btrem
Fun fact, Thunderbird apparently doesn't think "unintuitive" is a word!
rrix and [Al_Abut] joined the channel
#
mathium05
I just remembered
#
mathium05
Isn't there some list for very small websites?
#
mathium05
cause I have a small one :3
gRegor, gRegorLove_ and Kupietz joined the channel