Adds an iMeta cache for Picture and Video kinds and speeds up the procedure to verify if a video or picture is supported.

This commit is contained in:
Vitor Pamplona
2025-07-30 12:47:31 -04:00
parent 2c6a084808
commit fa53ff2c78
8 changed files with 176 additions and 156 deletions

View File

@@ -367,11 +367,11 @@ class RichTextParser {
private fun removeQueryParamsForExtensionComparison(fullUrl: String): String =
if (fullUrl.contains("?")) {
fullUrl.split("?")[0].lowercase()
fullUrl.split("?")[0]
} else if (fullUrl.contains("#")) {
fullUrl.split("#")[0].lowercase()
fullUrl.split("#")[0]
} else {
fullUrl.lowercase()
fullUrl
}
fun isImageOrVideoUrl(url: String): Boolean {