Skip to content

Commit

Permalink
don't assign empty array to queryItems
Browse files Browse the repository at this point in the history
  • Loading branch information
haxibami committed Sep 23, 2024
1 parent abb0629 commit a00f495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ static void batchSwizzlingOnClass(Class cls, NSArray<NSString*>*origSelectors, I
[safeParams addObject:item];
}
}
cleanedURL.queryItems = safeParams;
cleanedURL.queryItems = safeParams.count > 0 ? safeParams : nil;

if ([[NSUserDefaults standardUserDefaults] objectForKey:@"tweet_url_host"]) {
NSString *selectedHost = [[NSUserDefaults standardUserDefaults] objectForKey:@"tweet_url_host"];
Expand Down

0 comments on commit a00f495

Please sign in to comment.