Skip to content

Commit

Permalink
mysql: fix event kind reference that was recklessly renamed upstream.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Sep 24, 2024
1 parent 4439908 commit 365d131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func deleteBeforeSaveSql(evt *nostr.Event) (string, []any, bool) {
params []any
shouldDelete bool
)
if evt.Kind == nostr.KindProfileMetadata || evt.Kind == nostr.KindContactList || (10000 <= evt.Kind && evt.Kind < 20000) {
if evt.Kind == nostr.KindProfileMetadata || evt.Kind == nostr.KindFollowList || (10000 <= evt.Kind && evt.Kind < 20000) {
// delete past events from this user
query = `DELETE FROM event WHERE pubkey = ? AND kind = ?`
params = []any{evt.PubKey, evt.Kind}
Expand Down

0 comments on commit 365d131

Please sign in to comment.