this repo has no description

chore: updating atmosphere dev feed

Signed-off-by: Nick Gerakines <12125+ngerakines@users.noreply.github.com>

+26 -26
+26 -26
etc/atmosphere_dev.rhai
··· 10 10 11 11 const BAIL = [ 12 12 // For obvious reasons, keep the feed to PG 13 - "nsfw", "porn", 13 + "nsfw", "porn", "nsfl", 14 14 // Used a lot with tags like "dogsofbluesky" 15 15 "ofbluesky", 16 16 "ofbsky", ··· 20 20 "art", "illustration", 21 21 ]; 22 22 23 - const LIKELY_DIDS = [ 23 + const DIDS = [ 24 24 "did:plc:ewvi7nxzyoun6zhxrhs64oiz", 25 25 "did:plc:oc6vwdlmk2kqyida5i74d3p5", 26 26 "did:plc:lehcqqkwzcwvjvw66uthu5oq", 27 27 "did:plc:z72i7hdynmk6r22z27h6tvur", 28 - ]; 29 - 30 - const MAYBE_DIDS = [ 31 28 "did:plc:q6gjnaw2blty4crticxkmujt", 32 29 "did:plc:oky5czdrnfjpqslsw2a5iclo", 33 30 "did:plc:ragtjsm2j2vknwkz3zp4oxrd", ··· 44 41 [["pds"], 0.5], 45 42 [["jetstream"], 0.5], 46 43 [["firehose"], 0.5], 44 + [["lexicon"], 0.5], 45 + [["activitypub"], 0.5], 46 + [["federation"], 0.5], 47 + [["fediverse"], 0.5], 48 + [["handle"], 0.3], 49 + [["domain"], 0.3], 50 + [["mastodon"], 0.3], 47 51 [["bluesky", "infra"], 2.0], 48 52 ]; 49 53 const TAGS = [ 50 - ["atproto"], 51 - ["feed", "generator"], 52 - ["pds"], 53 - ["atmosphere"], 54 - ["atrium-rs"], 55 - ["supercell"], 56 - ["smokesignal"], 54 + ["atproto", 2.0], 55 + ["atprotocol", 2.0], 56 + ["pds", 0.5], 57 + ["atmosphere", 0.5], 57 58 ]; 58 59 59 60 const URLS = [ ··· 86 87 } 87 88 } 88 89 89 - let links = []; 90 - let tags = []; 91 90 for facet in event?.commit?.record?.facets ?? [] { 92 91 for feature in facet?.features ?? [] { 93 92 switch feature?["$type"] { 94 93 "app.bsky.richtext.facet#mention" => { 95 94 let mention = feature?["did"] ?? ""; 96 95 if !mention.is_empty() { 97 - if mention in LIKELY_DIDS { 98 - score += 1.0; 99 - } 100 - if mention in MAYBE_DIDS { 96 + if mention in DIDS { 101 97 score += 0.5; 102 98 } 103 99 } ··· 108 104 for needle in URLS { 109 105 if link.starts_with(needle) { 110 106 score += 1.0; 107 + break; 111 108 } 112 109 } 113 110 } 114 111 } 115 112 "app.bsky.richtext.facet#tag" => { 116 113 let tag = feature?["tag"] ?? ""; 117 - let tag_normalized = tag.to_lower(); 118 - for token in BAIL { 119 - if token in tag_normalized { 120 - return false; 114 + if !tag.is_empty() { 115 + let tag_normalized = tag.to_lower(); 116 + for token in BAIL { 117 + if token in tag_normalized { 118 + return false; 119 + } 121 120 } 122 - } 123 - for needle in TAGS { 124 - if sequence_matches(needle, tag_normalized) { 125 - score += 1.0; 121 + for needle in TAGS { 122 + if needle[0] == tag_normalized { 123 + score += needle[1]; 124 + break; 125 + } 126 126 } 127 127 } 128 128 }