Skip to content

Commit

Permalink
chore: remove drama
Browse files Browse the repository at this point in the history
  • Loading branch information
v0l committed Mar 13, 2023
1 parent 3a406aa commit f7a9902
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
12 changes: 0 additions & 12 deletions packages/app/src/Const.ts
Expand Up @@ -41,9 +41,6 @@ export const ProfileCacheExpire = 1_000 * 60 * 30;
export const DefaultRelays = new Map<string, RelaySettings>([
["wss://relay.snort.social", { read: true, write: true }],
["wss://nostr.wine", { read: true, write: false }],
["wss://eden.nostr.land", { read: true, write: false }],
["wss://atlas.nostr.land", { read: true, write: false }],
["wss://relay.orangepill.dev", { read: true, write: false }],
["wss://nos.lol", { read: true, write: false }],
]);

Expand Down Expand Up @@ -75,15 +72,6 @@ export const RecommendedFollows = [
"1577e4599dd10c863498fe3c20bd82aafaf829a595ce83c5cf8ac3463531b09b", // yegorpetrov
"04c915daefee38317fa734444acee390a8269fe5810b2241e5e6dd343dfbecc9", // ODELL
"7fa56f5d6962ab1e3cd424e758c3002b8665f7b0d8dcee9fe9e288d7751ac194", // verbiricha
"52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd", // semisol
];

/**
* Mark zaps invalid for the following pubkeys
*/
export const ZapperSpam = [
"e1ff3bfdd4e40315959b08b4fcc8245eaa514637e1d4ec2ae166b743341be1af", // benthecarman
"0827e302f2e1addb2ab7f56a15bbbc63ad8c4dbea72a054dffeb1d6a20557daa", // semisol
];

/**
Expand Down
5 changes: 0 additions & 5 deletions packages/app/src/Element/Zap.tsx
Expand Up @@ -10,7 +10,6 @@ import Text from "Element/Text";
import ProfileImage from "Element/ProfileImage";
import { RootState } from "State/Store";
import { findTag } from "Util";
import { ZapperSpam } from "Const";
import { UserCache } from "State/Users/UserCache";

import messages from "./messages";
Expand Down Expand Up @@ -54,10 +53,6 @@ export function parseZap(zapReceipt: TaggedRawEvent): ParsedZap {
ret.valid = false;
ret.errors.push("description_hash does not match zap request");
}
if (ZapperSpam.includes(zapReceipt.pubkey)) {
ret.valid = false;
ret.errors.push("zapper is banned");
}
if (findTag(zapRequest, "p") !== findTag(zapReceipt, "p")) {
ret.valid = false;
ret.errors.push("p tags dont match");
Expand Down

0 comments on commit f7a9902

Please sign in to comment.