Skip to content

Commit c32fe2e

Browse files
committed
fix(twitter): doubleclick ads
1 parent fae45f4 commit c32fe2e

File tree

1 file changed

+1
-1
lines changed
  • extensions/twitter/src/main/java/app/revanced/twitter/patches/hook/twifucker

1 file changed

+1
-1
lines changed

extensions/twitter/src/main/java/app/revanced/twitter/patches/hook/twifucker/TwiFucker.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ internal object TwiFucker {
7171
?.optJSONObject("tweet")
7272
?.has("promotedMetadata") == true || optJSONObject("content")?.optJSONObject("content")
7373
?.has("tweetPromotedMetadata") == true || optJSONObject("item")?.optJSONObject("content")
74-
?.has("tweetPromotedMetadata") == true
74+
?.has("tweetPromotedMetadata") == true || optJSONObject("content")?.optJSONObject("content")?.optString("__typename")?.startsWith("TimelineRtbImageAd") == true
7575

7676
private fun JSONObject.entryGetContentItems(): JSONArray? =
7777
optJSONObject("content")?.optJSONArray("items")

0 commit comments

Comments
 (0)