mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 03:38:23 +00:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user