fixed init filters

This commit is contained in:
gdlbo
2023-01-01 18:43:05 +03:00
parent 40a1ab64cb
commit 1a7031ead1
3 changed files with 9 additions and 5 deletions
@@ -231,11 +231,15 @@ public class AdBlockHook {
continue;
}
try {
if (NewsFeedFiltersUtils.injectFiltersReposts(list) && !isWhitelistedFilters(list)) {
if (dev())
Log.d("NewsfeedAdBlockV2", "Removed post " + list.optInt("post_id") + " from feed, Reason: repost ad");
continue;
}
} catch (Exception ex) {
Log.d("RepostInj", ex.getMessage());
}
newItems.put(list);
}
@@ -135,7 +135,6 @@ public class NewsFeedFiltersUtils {
}
}
if (mFiltersLinks != null) {
for (String filter : mFiltersLinks) {
if (copyrightLink != null && copyrightLink.contains(filter)) return true;
@@ -36,6 +36,7 @@ public class Preferences {
GmsUtils.fixGapps();
setProxy();
setupFilters();
VTVerifications.load(application);
LifecycleUtils.registerActivities(application);
} // VK Init