Mtt
Mtt

@sod I'm going straight to you. I want to do something like this:

  • If post/page has photos, use first photo for Opengraph
  • If post/page has no photos, use M.b avatar for Opengraph

I know the OG side of everything, but is there anything built-in I could use to simplify that without having to check strings or deal with a million other contingencies?

|
Embed
Progress spinner
numericcitizen
numericcitizen

@Mtt oooohh this could mean nice stuff coming in our way! 🤫

|
Embed
Progress spinner
Mtt
Mtt

@numericcitizen If I can work out all of the contingencies, it would enable better OpenGraph support (Tiny already has decent support). Basically showing better previews in places like Messages app, social media, etc.

|
Embed
Progress spinner
numericcitizen
numericcitizen

@Mtt I 😘

|
Embed
Progress spinner
sod
sod

@Mtt Hey, sorry for my late reply. You can get a list of a post photos via .Params.photos and the avatar URL is available via .Site.Author.avatar. Is that what you're looking for?

|
Embed
Progress spinner