This commit is contained in:
gdlbo
2024-02-17 22:27:56 +03:00
parent d4710663ff
commit b5ae2662db
@@ -85,18 +85,18 @@ public class NewsfeedHook {
}
public static void adsParams(HashSet<String> hashSet) {
String[] adsParams = {"ads_disabled", "ads_app_slider", "ads_site_slider", "ads_app", "ads_site", "ads_post", "ads_app_video", "ads_post_pretty_cards", "ads_post_snippet_video"};
String[] adsParams = {"ads_app_slider", "ads_site_slider", "ads_app", "ads_site", "ads_post", "ads_app_video", "ads_post_pretty_cards", "ads_post_snippet_video"};
String noAdParam = "ads_disabled";
if (ads()) {
hashSet.add(adsParams[0]);
hashSet.add(adsParams[1]);
hashSet.add(noAdParam);
if (!Preferences.milkshake()) {
hashSet.add(adsParams[0]);
}
} else {
Collections.addAll(hashSet, adsParams);
}
if (Preferences.milkshake()) {
hashSet.remove(adsParams[1]);
}
}
public static void takeOwnerIdSponsorPost(int ownerid) {