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)