fix: use lambda for generic RootIdentifierTag.match call

RootIdentifierTag is generic, so the `::match` method reference failed
JVM compilation. Call it through a lambda like the rest of CommentEvent.

https://claude.ai/code/session_01ArHkNXu1ANrVGZAyMWg4Xu
This commit is contained in:
Claude
2026-05-14 15:28:53 +00:00
parent a690777ef6
commit b7ead41145
@@ -182,7 +182,7 @@ class CommentEvent(
fun isScoped(scopeTest: (String) -> Boolean) = tags.any { RootIdentifierTag.isTagged(it, scopeTest) || ReplyIdentifierTag.isTagged(it, scopeTest) }
/** True when the comment points at an external identifier (`I` tag), e.g. a hashtag, geohash or url. */
fun hasRootScopeIdentifier() = tags.any(RootIdentifierTag::match)
fun hasRootScopeIdentifier() = tags.any { RootIdentifierTag.match(it) }
fun hasRootScopeKind(kind: String) = tags.any(RootKindTag::isKind, kind)