fix
This commit is contained in:
parent
5e5f6cab62
commit
edb4805f9f
8
block.sh
8
block.sh
@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
POLICY='/opt/strfry-policies/strfry-policy.ts'
|
||||
HEX=$(nak decode $1 | jq ".pubkey" | sed 's/"//i' | sed 's/"//i')
|
||||
echo "Adding $1 to block list"
|
||||
sed -i "28a '$HEX'," /opt/strfry-policies/strfry-policy.ts
|
||||
sed -i "s/\'\'//g" /opt/strfry-policies/strfry-policy.ts
|
||||
sed -i "s/\'\'//g" /opt/strfry-policies/strfry-policy.ts
|
||||
sed -i "29i '$HEX'," $POLICY
|
||||
sed -i "s/\'\'//g" $POLICY
|
||||
sed -i "s/'',//g" $POLICY
|
||||
sed -i '/^$/d' $POLICY
|
||||
|
@ -44,7 +44,7 @@ if (msg.event.kind === 0) {
|
||||
};
|
||||
};
|
||||
|
||||
let mastodon: (string | number)[] = ['gay','mas.to','abraham.su','lgbt','fosstodon','bae.st','bsky','liberal.city','mastodon.bot','botsin.space','a2mi.social','.au','masto.host','mastodon.online','social.beaware.live','nofan.xyz','mastodon.social','mstdn','mathstodon','universeodon','infosec', 'mastdn', 'kitty.social', 'c.im', '.jp', '.de', '.fr', 'toot', 'mastodon', 'misskey', 'journa.host', 'social', 'eldritchcafe', 'hachyderm', 'plush.city','kinky', 'chaosfem']
|
||||
let mastodon: (string | number)[] = ['rape.pet','peoplemaking.games','gay','mas.to','abraham.su','lgbt','fosstodon','bae.st','bsky','liberal.city','mastodon.bot','botsin.space','a2mi.social','.au','masto.host','mastodon.online','social.beaware.live','nofan.xyz','mastodon.social','mstdn','mathstodon','universeodon','infosec', 'mastdn', 'kitty.social', 'c.im', '.jp', '.de', '.fr', 'toot', 'mastodon', 'misskey', 'journa.host', 'social', 'eldritchcafe', 'hachyderm', 'plush.city','kinky', 'chaosfem']
|
||||
|
||||
const p = msg.event.tags.filter((tag) => tag[0] === 'p');
|
||||
const e = msg.event.tags.filter((tag) => tag[0] === 'e');
|
||||
|
@ -26,6 +26,8 @@ emoji,
|
||||
[keywordPolicy, ['https://media.channels.im','pay rent','Revealing nonce:','NostrDice','https://media.infosec.exchange','npub1q6ps7m94jfdastx2tx76sj8sq4nxdhlsgmzns2tr4xt6ydx6grzspm0kxr','My goals:','TURDISMO','https://files.thicc.horse','https://fe.upload.disroot.org','https://media.beige.party','https://s3.simkey.net','https://media.me.dm','https://media.fops.cloud','https://unfufadoo.net','https://t.co','https://witter.cz','https://static.theblower.au','https://minidisc.tokyo','https://cdn.noods.fun','https://thumbsnap.com','https://paste.gmem.ca','https://x.com','https://assets.fedeaated.press','https://media.outerheaven.club','https://kneel.before.dog','https://media.nofan.xyz','https://media.horrorhub.club','https://stockroom.wandering.shop','https://media.troet.cafe','https://ovo.wxw.media','https://files.girino.org','https://media.absturztau.be','https://files.ioc.exchange','https://media.cmx.edu.kg','https://media.suya.place','https://media.valkyrie.world','https://voskeyfiles.icalo.net','https://ak.kyaruc.moe','https://mast-files.shitpostbot.com','https://cdn.aethy.com','https://media.spinster.xyz','https://img.pawoo.net','https://amami.paradigm-x.tokyo','https://social.mikutter.hachune.net','https://imouto.pics','https://pl.slash.cl','https://matrix.rocks','https://quark.scrolller.com','https://cum.salon/media','https://www.manyvids.com','https://fansly.com','https://onlyfans.com','https://proton.scrolller.com','https://pomf2.lain.la','https://media.wolfgirl.bar','https://api-test.summary.news','https://fans.ly','https://figure.game','https://gearlandia.haus/media','https://link.storjshare.io','https://kinkyelephant.com','https://cdn77.scoreuniverse.com','https://milker.cafe','https://open.spotify.com','https://media.gameliberty.club','https://media.baraag.net','https://t.me/','https://nyc3.digitaloceanspaces.com','https://images.scrolller.com/femto']],
|
||||
[pubkeyBanPolicy, [
|
||||
'715dc06230d7c6aa62b044a8a764728ae6862eb100f1800ef91d5cc9f972dc55',
|
||||
'71132740d5f687e997992da9c2e5f143cf552e79869aee5c50a2571825c68b9c',
|
||||
'71132740d5f687e997992da9c2e5f143cf552e79869aee5c50a2571825c68b9c',
|
||||
'bd27c66c08befa71127de6b1e006d15f4829cacd89adff5903711ff0d6628dfc',
|
||||
'081f870f41324f4eefae06fd71852da77c3977e1565bc3d2bdd2dd4b9e8a3945',
|
||||
'43878d9d4b6e239a51ba4554514b167e9cf82a0e47336f8408955da8affe0108',
|
||||
|
Loading…
Reference in New Issue
Block a user