This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Refactor oEmbed previews #10814
Merged
Merged
Refactor oEmbed previews #10814
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
84c4a53
Factor out calculating a description from an HTML tree.
clokep 160b2ca
Factor out calculating the expiration timestamp.
clokep 611849d
Factor out pre-caching a related image.
clokep 05076b7
Update test to actually return an image.
clokep 0501d08
Process oEmbed by downloading the result to a file for later processing.
clokep 0c763bf
Assume required properties exist.
clokep 3ffaee6
Newsfragment
clokep 91f5d0c
Merge remote-tracking branch 'origin/develop' into clokep/oembed-impr…
clokep c98626c
Rename some variables.
clokep c29713f
Clarify docs more.
clokep ea0870f
Merge remote-tracking branch 'origin/develop' into clokep/oembed-impr…
clokep e9cf11f
Use png constant.
clokep 53b733b
Clearer property names.
clokep 86b75fb
Return early in _precache_image_url.
clokep 93c0c25
Fix charset in tests.
clokep 5327053
Clarify when cache_age is None.
clokep a2a40d7
Cap the amount of time which URL previews will be kept to 24 hours.
clokep 6643b3f
Fix typo.
clokep 1f975d6
Pass raw-bytes to the oEmbed code.
clokep c31f23b
Clarify comment.
clokep 62b36c0
Re-use a constant.
clokep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.