Add handling of links to comments in posts

This commit is contained in:
krawieck 2020-09-12 09:40:47 +02:00
parent 77d54016f3
commit dedf219279
1 changed files with 8 additions and 2 deletions

View File

@ -55,8 +55,14 @@ Future<void> urlLauncher({
instanceUrl: matchedInstance, username: split[2]));
case 'post':
return push((_) => FullPostPage(
id: int.parse(split[2]), instanceUrl: matchedInstance));
if (split.length == 3) {
return push((_) => FullPostPage(
id: int.parse(split[2]), instanceUrl: matchedInstance));
} else if (split.length == 5) {
return;
// TODO: post with focus on comment thread
}
break;
case 'pictrs':
// TODO: put here push to media view