1 parent a1d84cf commit 09f135dCopy full SHA for 09f135d
1 file changed
global/paywall.go
@@ -13,6 +13,10 @@ var canReadCache = xsync.NewMapOf[[16]byte, bool]()
13
14
// returns a cached boolean or computes it and returns
15
func CanReadPaywalled(author, reader nostr.PubKey) bool {
16
+ if author == reader {
17
+ return true
18
+ }
19
+
20
key := [16]byte{}
21
copy(key[0:8], author[0:8])
22
copy(key[8:16], reader[0:8])
0 commit comments