mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 23:47:02 +05:30
app: fallback to comments if post has no url
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
78484de959
commit
0da85ba015
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ fun LobstersApp(
|
||||||
}
|
}
|
||||||
LobstersItem(
|
LobstersItem(
|
||||||
item,
|
item,
|
||||||
linkOpenAction = { post -> urlLauncher.launch(post.url) },
|
linkOpenAction = { post -> urlLauncher.launch(post.url.ifEmpty { post.commentsUrl }) },
|
||||||
commentOpenAction = { post -> urlLauncher.launch(post.commentsUrl) },
|
commentOpenAction = { post -> urlLauncher.launch(post.commentsUrl) },
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue