Improve group membership detection

This commit is contained in:
Jon Staab
2025-05-28 16:46:41 -07:00
parent 72d85e5740
commit f7d11cf124
11 changed files with 223 additions and 118 deletions
+1 -6
View File
@@ -17,7 +17,6 @@
MESSAGE,
INBOX_RELAYS,
DIRECT_MESSAGE,
GROUP_META,
MUTES,
FOLLOWS,
PROFILE,
@@ -174,11 +173,7 @@
limit: 10_000,
repository,
rankEvent: (e: TrustedEvent) => {
if (
[PROFILE, FOLLOWS, MUTES, RELAYS, BLOSSOM_SERVERS, INBOX_RELAYS, GROUP_META].includes(
e.kind,
)
) {
if ([PROFILE, FOLLOWS, MUTES, RELAYS, BLOSSOM_SERVERS, INBOX_RELAYS].includes(e.kind)) {
return 1
}