From bf98b236d2c7fc64a456e38ebe68b8e3a8db2a74 Mon Sep 17 00:00:00 2001 From: clokep Date: Tue, 21 Sep 2021 16:10:24 +0000 Subject: deploy: ba7a91aea5fd624bf048f0fda0dca80da7a1945e --- develop/development/url_previews.html | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'develop/development') diff --git a/develop/development/url_previews.html b/develop/development/url_previews.html index 7189a53575..3d10262a81 100644 --- a/develop/development/url_previews.html +++ b/develop/development/url_previews.html @@ -213,12 +213,10 @@ is also used to de-duplicate processing of multiple in-flight requests at once.)
  1. Checks the database cache by URL and timestamp and returns the result if it has not expired and was successful (a 2xx return code).
  2. -
  3. Checks if the URL matches an oEmbed pattern. If it does, fetch the oEmbed -response. If this is an image, replace the URL to fetch and continue. If -if it is HTML content, use the HTML as the document and continue.
  4. -
  5. If it doesn't match an oEmbed pattern, downloads the URL and stores it -into a file via the media storage provider and saves the local media -metadata.
  6. +
  7. Checks if the URL matches an oEmbed pattern. If it +does, update the URL to download.
  8. +
  9. Downloads the URL and stores it into a file via the media storage provider +and saves the local media metadata.
  10. If the media is an image:
    1. Generates thumbnails.
    2. @@ -239,6 +237,19 @@ provider and saves the local media metadata.
  11. +
  12. If the media is JSON and an oEmbed URL was found: +
      +
    1. Convert the oEmbed response to an Open Graph response.
    2. +
    3. If a thumbnail or image is in the oEmbed response: +
        +
      1. Downloads the URL and stores it into a file via the media storage +provider and saves the local media metadata.
      2. +
      3. Generates thumbnails.
      4. +
      5. Updates the Open Graph response based on image properties.
      6. +
      +
    4. +
    +
  13. Stores the result in the database cache.
-- cgit 1.5.1