pull/11367/head
clokep 2021-09-21 16:10:24 +00:00
parent 7a927aac59
commit bf98b236d2
4 changed files with 36 additions and 14 deletions

View File

@ -213,12 +213,10 @@ is also used to de-duplicate processing of multiple in-flight requests at once.)
<ol> <ol>
<li>Checks the database cache by URL and timestamp and returns the result if it <li>Checks the database cache by URL and timestamp and returns the result if it
has not expired and was successful (a 2xx return code).</li> has not expired and was successful (a 2xx return code).</li>
<li>Checks if the URL matches an oEmbed pattern. If it does, fetch the oEmbed <li>Checks if the URL matches an <a href="https://oembed.com/">oEmbed</a> pattern. If it
response. If this is an image, replace the URL to fetch and continue. If does, update the URL to download.</li>
if it is HTML content, use the HTML as the document and continue.</li> <li>Downloads the URL and stores it into a file via the media storage provider
<li>If it doesn't match an oEmbed pattern, downloads the URL and stores it and saves the local media metadata.</li>
into a file via the media storage provider and saves the local media
metadata.</li>
<li>If the media is an image: <li>If the media is an image:
<ol> <ol>
<li>Generates thumbnails.</li> <li>Generates thumbnails.</li>
@ -239,6 +237,19 @@ provider and saves the local media metadata.</li>
</li> </li>
</ol> </ol>
</li> </li>
<li>If the media is JSON and an oEmbed URL was found:
<ol>
<li>Convert the oEmbed response to an Open Graph response.</li>
<li>If a thumbnail or image is in the oEmbed response:
<ol>
<li>Downloads the URL and stores it into a file via the media storage
provider and saves the local media metadata.</li>
<li>Generates thumbnails.</li>
<li>Updates the Open Graph response based on image properties.</li>
</ol>
</li>
</ol>
</li>
<li>Stores the result in the database cache.</li> <li>Stores the result in the database cache.</li>
</ol> </ol>
</li> </li>

View File

@ -7304,12 +7304,10 @@ is also used to de-duplicate processing of multiple in-flight requests at once.)
<ol> <ol>
<li>Checks the database cache by URL and timestamp and returns the result if it <li>Checks the database cache by URL and timestamp and returns the result if it
has not expired and was successful (a 2xx return code).</li> has not expired and was successful (a 2xx return code).</li>
<li>Checks if the URL matches an oEmbed pattern. If it does, fetch the oEmbed <li>Checks if the URL matches an <a href="https://oembed.com/">oEmbed</a> pattern. If it
response. If this is an image, replace the URL to fetch and continue. If does, update the URL to download.</li>
if it is HTML content, use the HTML as the document and continue.</li> <li>Downloads the URL and stores it into a file via the media storage provider
<li>If it doesn't match an oEmbed pattern, downloads the URL and stores it and saves the local media metadata.</li>
into a file via the media storage provider and saves the local media
metadata.</li>
<li>If the media is an image: <li>If the media is an image:
<ol> <ol>
<li>Generates thumbnails.</li> <li>Generates thumbnails.</li>
@ -7330,6 +7328,19 @@ provider and saves the local media metadata.</li>
</li> </li>
</ol> </ol>
</li> </li>
<li>If the media is JSON and an oEmbed URL was found:
<ol>
<li>Convert the oEmbed response to an Open Graph response.</li>
<li>If a thumbnail or image is in the oEmbed response:
<ol>
<li>Downloads the URL and stores it into a file via the media storage
provider and saves the local media metadata.</li>
<li>Generates thumbnails.</li>
<li>Updates the Open Graph response based on image properties.</li>
</ol>
</li>
</ol>
</li>
<li>Stores the result in the database cache.</li> <li>Stores the result in the database cache.</li>
</ol> </ol>
</li> </li>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long