fix(widget): correct check for comments action

This commit is contained in:
Harsh Shandilya
2026-01-02 01:50:45 +05:30
parent 15a04a7684
commit b7721602ff
@@ -36,7 +36,7 @@ fun WidgetPostEntry(post: UIPost, modifier: GlanceModifier = GlanceModifier) {
actionParametersOf(OpenCommentsCallback.postIdKey to post.shortId)
)
val postAction =
if (post.url.startsWith('/')) commentsAction
if (post.url.startsWith('/') || post.url.isEmpty()) commentsAction
else actionRunCallback<OpenUrlCallback>(actionParametersOf(OpenUrlCallback.urlKey to post.url))
Row(
verticalAlignment = Alignment.CenterVertically,