this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

simplify pronouns record type

+59 -223
+56 -220
src/constants.ts
··· 1 1 import "dotenv/config"; 2 2 3 - export const PRONOUNS: Record<string, { post: string; id?: string }> = { 4 - "3kwsqucto3j2a": { 5 - post: "Like this post to delete your labels", 6 - }, 7 - "3kwss4ldkwd2j": { 8 - post: "they/them", 9 - id: "they", 10 - }, 11 - "3kwss4fmiow2n": { 12 - post: "it/its", 13 - id: "it", 14 - }, 15 - "3kwss4bzqlw2k": { 16 - post: "he/him", 17 - id: "he", 18 - }, 19 - "3kwss45mxrh2j": { 20 - post: "she/her", 21 - id: "she", 22 - }, 23 - "3kwst2tn2342f": { 24 - post: "look at bio", 25 - id: "bio", 26 - }, 27 - "3kwsslg3gqk2t": { 28 - post: "avoid", 29 - id: "avoid", 30 - }, 31 - "3kwssldhzme27": { 32 - post: "ask", 33 - id: "ask", 34 - }, 35 - "3kwss4vc4cw2x": { 36 - post: "any/all", 37 - id: "any", 38 - }, 39 - "3kwu55hxj4b2a": { 40 - post: "fae/faer", 41 - id: "fae", 42 - }, 43 - "3kwu5d6rq352v": { 44 - post: "bun/buns", 45 - id: "bun", 46 - }, 47 - "3kwu5s4lt6f2k": { 48 - post: "xe/xir", 49 - id: "xe", 50 - }, 51 - "3kwu5sjyg4m2f": { 52 - post: "drae/draer", 53 - id: "drae", 54 - }, 55 - "3kwu5stootb2q": { 56 - post: "e/em/eir", 57 - id: "e", 58 - }, 59 - "3kwu5taglmr2q": { 60 - post: "sier/siehn/siere", 61 - id: "sier", 62 - }, 63 - "3kwu6b3cnd52k": { 64 - post: "ey/em/eir", 65 - id: "ey", 66 - }, 67 - "3kwu7n26cgm2m": { 68 - post: "shey/sheir/sher", 69 - id: "shey", 70 - }, 71 - "3kwue4lqwjb2q": { 72 - post: "voi/void", 73 - id: "voi", 74 - }, 75 - "3kwueewr2p22j": { 76 - post: "mew/mews", 77 - id: "mew", 78 - }, 79 - "3kwukwwz4nt2j": { 80 - post: "paw/paws", 81 - id: "paw", 82 - }, 83 - "3kwuv4vxgwu2n": { 84 - post: "kit/kits", 85 - id: "kit", 86 - }, 87 - "3kwuv56n4jv2g": { 88 - post: "zie/zir", 89 - id: "zie", 90 - }, 91 - "3kwuvaelsru2m": { 92 - post: "ae/aer", 93 - id: "ae", 94 - }, 95 - "3kwv2d6oguw2n": { 96 - post: "prince/princes/princeself", 97 - id: "prince", 98 - }, 99 - "3kwvcc736wg2n": { 100 - post: "ze/hir", 101 - id: "ze", 102 - }, 103 - "3kwwwvsvcnz2h": { 104 - post: "dey/deren", 105 - id: "dey", 106 - }, 107 - "3kwxljuxooh2r": { 108 - post: "none", 109 - id: "none", 110 - }, 111 - "3kwzimwll6j2q": { 112 - post: "e/em/er", 113 - id: "e-em-er", 114 - }, 115 - "3kwzmcaue3e22": { 116 - post: "xier/xies", 117 - id: "xier", 118 - }, 119 - "3kwzmclqnud2t": { 120 - post: "sier/sies", 121 - id: "sier-sies", 122 - }, 123 - "3kx22bkmnco2t": { 124 - post: "ens/ens", 125 - id: "ens", 126 - }, 127 - "3kx45q2fq372f": { 128 - post: "squee/squir", 129 - id: "squee", 130 - }, 131 - "3kx4puqpu5q2j": { 132 - post: "vi/vix", 133 - id: "vi", 134 - }, 135 - "3kxntgh45yy2j": { 136 - post: "ne/nem/nir", 137 - id: "ne-nem-nir", 138 - }, 139 - "3kxqmnktb532k": { 140 - post: "ze/zim", 141 - id: "ze-zim", 142 - }, 143 - "3kxsppngl4e2a": { 144 - post: "pup/pups/pupself", 145 - id: "pup-pups-pupself", 146 - }, 147 - "3kxvjiundpz2r": { 148 - post: "zi/zir", 149 - id: "zi-zir", 150 - }, 151 - "3kxvjixhmhh2g": { 152 - post: "he/haw", 153 - id: "he-haw", 154 - }, 155 - "3kxwujilwty2m": { 156 - post: "hee/haw", 157 - id: "hee-haw", 158 - }, 159 - "3kxy7b27dke2w": { 160 - post: "zhi/zhr", 161 - id: "zhi-zhr", 162 - }, 163 - "3ky7xcoqkza2q": { 164 - post: "ve/ver", 165 - id: "ve-ver", 166 - }, 167 - "3kygr2mke2t2z": { 168 - post: "sí/hir", 169 - id: "si-hir", 170 - }, 171 - "3kyikdvmeff2g": { 172 - post: "she/we", 173 - id: "she-we", 174 - }, 175 - "3kyikdz4eau2a": { 176 - post: "he/we", 177 - id: "he-we", 178 - }, 179 - "3kyike4fibu2k": { 180 - post: "they/we", 181 - id: "they-we", 182 - }, 183 - "3kyilq67fyv2a": { 184 - post: "xe/xem", 185 - id: "xe-xem", 186 - }, 187 - "3kzfbgd3jpz2k": { 188 - post: "sun/suns", 189 - id: "sun-suns", 190 - }, 191 - "3kzfbgi7is225": { 192 - post: "leaf/leafs", 193 - id: "leaf-leafs", 194 - }, 195 - "3kzftskynd32l": { 196 - post: "shiv/ver", 197 - id: "shiv-ver", 198 - }, 199 - "3l2jb2koecj27": { 200 - post: "ferret/ferrets/ferretself", 201 - id: "ferret-ferrets", 202 - }, 203 - "3l2kx6qwefk2h": { 204 - post: "drüsshe/drayr", 205 - id: "drusshe-drayr", 206 - }, 207 - "3l2xlzk6lrx2r": { 208 - post: "frog/frogs", 209 - id: "frog-frogs", 210 - }, 211 - "3l2xlzt6v5z2x": { 212 - post: "rat/rats", 213 - id: "rat-rats", 214 - }, 215 - "3l2zv7xcpq62u": { 216 - post: "shark/sharks", 217 - id: "shark-sharks", 218 - }, 219 - "3l32xb7nvgh2x": { 220 - post: "name/proper nouns", 221 - id: "proper-nouns", 222 - }, 3 + export const PRONOUNS: Record<string, string> = { 4 + "3kwsqucto3j2a": "delete", 5 + "3kwss4ldkwd2j": "they", 6 + "3kwss4fmiow2n": "it", 7 + "3kwss4bzqlw2k": "he", 8 + "3kwss45mxrh2j": "she", 9 + "3kwst2tn2342f": "bio", 10 + "3kwsslg3gqk2t": "avoid", 11 + "3kwssldhzme27": "ask", 12 + "3kwss4vc4cw2x": "any", 13 + "3kwu55hxj4b2a": "fae", 14 + "3kwu5d6rq352v": "bun", 15 + "3kwu5s4lt6f2k": "xe", 16 + "3kwu5sjyg4m2f": "drae", 17 + "3kwu5stootb2q": "e", 18 + "3kwu5taglmr2q": "sier", 19 + "3kwu6b3cnd52k": "ey", 20 + "3kwu7n26cgm2m": "shey", 21 + "3kwue4lqwjb2q": "voi", 22 + "3kwueewr2p22j": "mew", 23 + "3kwukwwz4nt2j": "paw", 24 + "3kwuv4vxgwu2n": "kit", 25 + "3kwuv56n4jv2g": "zie", 26 + "3kwuvaelsru2m": "ae", 27 + "3kwv2d6oguw2n": "prince", 28 + "3kwvcc736wg2n": "ze", 29 + "3kwwwvsvcnz2h": "dey", 30 + "3kwxljuxooh2r": "none", 31 + "3kwzimwll6j2q": "e-em-er", 32 + "3kwzmcaue3e22": "xier", 33 + "3kwzmclqnud2t": "sier-sies", 34 + "3kx22bkmnco2t": "ens", 35 + "3kx45q2fq372f": "squee", 36 + "3kx4puqpu5q2j": "vi", 37 + "3kxntgh45yy2j": "ne-nem-nir", 38 + "3kxqmnktb532k": "ze-zim", 39 + "3kxsppngl4e2a": "pup-pups-pupself", 40 + "3kxvjiundpz2r": "zi-zir", 41 + "3kxvjixhmhh2g": "he-haw", 42 + "3kxwujilwty2m": "hee-haw", 43 + "3kxy7b27dke2w": "zhi-zhr", 44 + "3ky7xcoqkza2q": "ve-ver", 45 + "3kygr2mke2t2z": "si-hir", 46 + "3kyikdvmeff2g": "she-we", 47 + "3kyikdz4eau2a": "he-we", 48 + "3kyike4fibu2k": "they-we", 49 + "3kyilq67fyv2a": "xe-xem", 50 + "3kzfbgd3jpz2k": "sun-suns", 51 + "3kzfbgi7is225": "leaf-leafs", 52 + "3kzftskynd32l": "shiv-ver", 53 + "3l2jb2koecj27": "ferret-ferrets", 54 + "3l2kx6qwefk2h": "drusshe-drayr", 55 + "3l2xlzk6lrx2r": "frog-frogs", 56 + "3l2xlzt6v5z2x": "rat-rats", 57 + "3l2zv7xcpq62u": "shark-sharks", 58 + "3l32xb7nvgh2x": "proper-nouns", 223 59 }; 224 60 225 61 export const DID = process.env.DID ?? "";
+3 -3
src/label.ts
··· 31 31 return set; 32 32 }, new Set<string>()); 33 33 34 - if (PRONOUNS[uri].post.includes("Like this post to delete")) { 34 + if (PRONOUNS[uri].includes("delete")) { 35 35 await server 36 36 .createLabels({ uri: did }, { negate: [...labels] }) 37 37 .catch((err) => { ··· 43 43 .createLabel({ 44 44 src: server.did, 45 45 uri: did, 46 - val: PRONOUNS[uri].id!, 46 + val: PRONOUNS[uri], 47 47 cts: new Date().toISOString(), 48 48 }) 49 49 .catch((err) => { 50 50 console.log(err); 51 51 }) 52 - .then(() => console.log(`Labeled ${did} with ${PRONOUNS[uri].post}`)); 52 + .then(() => console.log(`Labeled ${did} with ${PRONOUNS[uri]}`)); 53 53 } 54 54 };