Skip to content

Commit

Permalink
Open gravatar links in the image viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Dec 13, 2019
1 parent f62140b commit d7b9cbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ android {
testBuildType "mockdata"

defaultConfig {
versionCode 267
versionCode 268
versionName "4.20"
minSdkVersion 17
targetSdkVersion 29
Expand Down
3 changes: 2 additions & 1 deletion src/com/irccloud/android/data/collection/ImageList.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ public static boolean isImageURL(String url) {
"(^https?://(www\\.)?xkcd\\.com/[0-9]+/?)|" +
"(^https?://.*\\.steampowered\\.com/ugc/.*)|" +
"(^https?://static\\.irccloud-cdn\\.com/avatar-redirect/s.*)|" +
"(^https?://.*\\.slack-edge\\.com/.*-(72|192|512))"
"(^https?://.*\\.slack-edge\\.com/.*-(72|192|512))|" +
"(^https?://(www\\.)?gravatar\\.com/avatar/.*)"
) && !url.matches("(^https?://cl\\.ly/robots\\.txt$)|(^https?://cl\\.ly/image/?$)") && !(url.contains("imgur.com") && url.contains(","));
}

Expand Down

0 comments on commit d7b9cbb

Please sign in to comment.