filter: add reposts query filter helper
Add a filter helper to easily query quote repost queries. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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<RepostedNotify> {
|
||||
.init()
|
||||
}
|
||||
}
|
||||
|
||||
extension Notifications {
|
||||
static func reposted(_ counts: Counted) -> Notifications<RepostedNotify> {
|
||||
.init(.init(payload: counts))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user