mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 05:37:02 +05:30
Merge pull request #37 from msfjarvis/comments-only
Fallback to comments if post has no URL
This commit is contained in:
commit
7544eb96fc
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