urbit / Aegean

Productizing Urbit
3 stars 1 forks source link

Fetch and display OpenGraph data #10

Open hanfel-dovned opened 6 months ago

hanfel-dovned commented 6 months ago

When a %preview is posted/generated, the frontend should fetch the OpenGraph data from the provided link and store it. This OpenGraph data should then be used to render the rich content for posts with a %preview tag.

hanfel-dovned commented 6 months ago

Notes from workshop today:

+$  rich
  $%  [%link url=$%(link=@t fqsp=path) content=(map path cord)]
  ==
$+  link
  $:  [%url url=@t]
      [%content (map path cord)]  ::
  ==

/hanfel-dovned/whatever/dog/image

[%tune /hanfel-dovned/whatever/dog/image/dimensions/dim]
[%tune /hanfel-dovned/whatever/z/dog/image]

/image
  /image/dimensions/dim
  /image/rawdata/png

/espn/opengraph
  /epsn/opengraph/previewurl/txt
  /epsn/opengraph/title/txt
  /epsn/opengraph/description/txt