handle reddit.com/report as a url, not post link (#1179)

This commit is contained in:
Patrick Demers 2022-11-02 07:17:21 -05:00 committed by GitHub
parent f85959cd89
commit 2863fa90be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,8 @@ public class LinkResolverActivity extends AppCompatActivity {
} else if (path.isEmpty()) {
Intent intent = new Intent(this, MainActivity.class);
startActivity(intent);
} else if (path.equals("/report")) {
openInWebView(uri);
} else if (path.matches(POST_PATTERN) || path.matches(POST_PATTERN_2)) {
int commentsIndex = segments.lastIndexOf("comments");
if (commentsIndex >= 0 && commentsIndex < segments.size() - 1) {