feat(Instagram): Add Limit feed to followed profiles patch (#5908)

This commit is contained in:
brosssh 2025-09-18 08:13:46 +02:00 committed by GitHub
parent 6862200a28
commit 8ba9a19ade
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 132 additions and 1 deletions

View file

@ -0,0 +1,3 @@
dependencies {
compileOnly(project(":extensions:shared:library"))
}

View file

@ -0,0 +1 @@
<manifest/>

View file

@ -0,0 +1,18 @@
package app.revanced.extension.instagram.feed;
import java.util.HashMap;
import java.util.Map;
@SuppressWarnings("unused")
public class LimitFeedToFollowedProfiles {
/**
* Injection point.
*/
public static Map<String, String> setFollowingHeader(Map<String, String> requestHeaderMap) {
// Create new map as original is unmodifiable.
Map<String, String> patchedRequestHeaderMap = new HashMap<>(requestHeaderMap);
patchedRequestHeaderMap.put("pagination_source", "following");
return patchedRequestHeaderMap;
}
}