fix: more aggressive user agent for URL preview #1434
Labels
No labels
Blocked
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1434
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "gamesguru/continuwuity:hotfix/improve-media-preview-add-cache-clear-mechanism"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request adds a more aggressive user agent for URL preview, fixing many loading errors. It also adds an admin command to clear stuck and broken URL data (one command per URL currently).
Pull request checklist:
mainbranch, and the branch is named something other thanmain.myself, if applicable. This includes ensuring code compiles.
adding "facebookexternalhit" alongside "embedbot" fixes many errors, such as YouTube Music's: "Your browser is deprecated. Please upgrade." add admin command to clear URL stuck and broken data (per URL currently)LGTM 👍
4204acc6d849efbeafe4Looks fine to me. Won't block on the review comment if you don't fancy implementing the additional command, just let me know.
@ -390,1 +390,4 @@}#[admin_command]pub(super) async fn delete_url_preview(&self, url: String) -> Result {If we're adding a command to delete specific previews, I think a "purge all" command would probably also be appreciated.
(purge all should be done by all-caches anyway via the service trait, but sometimes people want to be more specific - and should be just an --all option)
added
--allflag49efbeafe4e9697c5d91e9697c5d911184b5bf611184b5bf61354ca9b28e