Skip to content

Commit

Permalink
fix(twitter): doubleclick ads
Browse files Browse the repository at this point in the history
  • Loading branch information
Flat committed Jan 15, 2025
1 parent fae45f4 commit c32fe2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ internal object TwiFucker {
?.optJSONObject("tweet")
?.has("promotedMetadata") == true || optJSONObject("content")?.optJSONObject("content")
?.has("tweetPromotedMetadata") == true || optJSONObject("item")?.optJSONObject("content")
?.has("tweetPromotedMetadata") == true
?.has("tweetPromotedMetadata") == true || optJSONObject("content")?.optJSONObject("content")?.optString("__typename")?.startsWith("TimelineRtbImageAd") == true

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

0 comments on commit c32fe2e

Please sign in to comment.