Files
damus/damus/Util/AccountDeletion.swift
William Casarin bb4fd75576 nostrdb: add profiles to nostrdb
This adds profiles to nostrdb

- Remove in-memory Profiles caches, nostrdb is as fast as an in-memory cache
- Remove ProfileDatabase and just use nostrdb directly

Changelog-Changed: Use nostrdb for profiles
2023-09-21 09:10:06 -04:00

20 lines
447 B
Swift

//
// AccountDeletion.swift
// damus
//
// Created by William Casarin on 2023-01-30.
//
import Foundation
func created_deleted_account_profile(keypair: FullKeypair) -> NostrEvent? {
let about = "account deleted"
let name = "nobody"
let profile = Profile(name: name, about: about)
guard let content = encode_json(profile) else { return nil }
return NostrEvent(content: content, keypair: keypair.to_keypair(), kind: 0)
}