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
20 lines
447 B
Swift
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)
|
|
}
|