-
-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android notif: Keep parsed
URL
of avatarURL, rather than String.
We already ensure in the "crunchy shell" that the value does in fact parse successfully as a URL; so this just means keeping the result, rather than discarding it. This also allows a couple of bits of logic in the interior to behave more precisely: * Instead of just appending a string like `&s=160` to the URL -- implicitly assuming that the URL already contains a query (`?...`) and doesn't contain a fragment (`#...`) -- use the URL's structure to add to the query what we want. * Drop a `startsWith("http")` condition. This was a crude heuristic check that the URL was a real absolute URL; since cee71e0, no such check has been necessary.
- Loading branch information
Showing
4 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters