Remove link filtering for mediawiki, it's too strict and not every site uses the /wiki/-pattern.

This commit is contained in:
Viktor Lofgren 2023-07-01 19:32:25 +02:00
parent eda615de0f
commit 24dce8c03b

View File

@ -22,9 +22,6 @@ public class LinkFilterSelector {
if (isLemmy(head)) {
return url -> url.path.startsWith("/post/") || url.path.startsWith("/c/");
}
if (isMediawiki(head)) {
return url -> url.path.startsWith("/wiki/") && !url.path.contains(":");
}
if (isDiscourse(head)) {
return url -> url.path.startsWith("/t/") || url.path.contains("/latest");
}