From b7ead4114565a60f8be1b310428872ae224b082d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 14 May 2026 15:28:53 +0000 Subject: [PATCH] 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 --- .../com/vitorpamplona/quartz/nip22Comments/CommentEvent.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip22Comments/CommentEvent.kt b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip22Comments/CommentEvent.kt index 16327de441..8bd085449d 100644 --- a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip22Comments/CommentEvent.kt +++ b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip22Comments/CommentEvent.kt @@ -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)