diff --git a/damus/Nostr/NostrFilter.swift b/damus/Nostr/NostrFilter.swift index cd6472bf..1310defa 100644 --- a/damus/Nostr/NostrFilter.swift +++ b/damus/Nostr/NostrFilter.swift @@ -18,6 +18,7 @@ struct NostrFilter: Codable, Equatable { var authors: [Pubkey]? var hashtag: [String]? var parameter: [String]? + var quotes: [NoteId]? private enum CodingKeys : String, CodingKey { case ids @@ -26,13 +27,14 @@ struct NostrFilter: Codable, Equatable { case pubkeys = "#p" case hashtag = "#t" case parameter = "#d" + case quotes = "#q" case since case until case authors case limit } - init(ids: [NoteId]? = nil, kinds: [NostrKind]? = nil, referenced_ids: [NoteId]? = nil, pubkeys: [Pubkey]? = nil, since: UInt32? = nil, until: UInt32? = nil, limit: UInt32? = nil, authors: [Pubkey]? = nil, hashtag: [String]? = nil) { + init(ids: [NoteId]? = nil, kinds: [NostrKind]? = nil, referenced_ids: [NoteId]? = nil, pubkeys: [Pubkey]? = nil, since: UInt32? = nil, until: UInt32? = nil, limit: UInt32? = nil, authors: [Pubkey]? = nil, hashtag: [String]? = nil, quotes: [NoteId]? = nil) { self.ids = ids self.kinds = kinds self.referenced_ids = referenced_ids @@ -42,6 +44,7 @@ struct NostrFilter: Codable, Equatable { self.limit = limit self.authors = authors self.hashtag = hashtag + self.quotes = quotes } public static func copy(from: NostrFilter) -> NostrFilter { diff --git a/damus/Notify/RepostedNotify.swift b/damus/Notify/RepostedNotify.swift deleted file mode 100644 index b9eb8ad4..00000000 --- a/damus/Notify/RepostedNotify.swift +++ /dev/null @@ -1,26 +0,0 @@ -// -// BoostedNotify.swift -// damus -// -// Created by William Casarin on 2023-07-30. -// - -import Foundation - -struct RepostedNotify: Notify { - typealias Payload = Counted - var payload: Payload -} - -extension NotifyHandler { - static var reposted: NotifyHandler { - .init() - } -} - -extension Notifications { - static func reposted(_ counts: Counted) -> Notifications { - .init(.init(payload: counts)) - } -} -