mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
fix(admin): Own pushkeys before deleting all of a user's pushers
This commit is contained in:
1 parent
5cf0a5b376
commit
4dc7e06c90
6 files changed
+7
-8
No files matched your search
@@ -182,13 +182,14 @@ impl Service {
|
||||
pub fn get_pushkeys<'a>(
|
||||
&'a self,
|
||||
sender: &'a UserId,
|
||||
) -> impl Stream<Item = &'a str> + Send + 'a {
|
||||
) -> impl Stream<Item = String> + Send + 'a {
|
||||
let prefix = (sender, Interfix);
|
||||
self.db
|
||||
.senderkey_pusher
|
||||
.keys_prefix(&prefix)
|
||||
.ignore_err()
|
||||
.map(|(_, pushkey): (Ignore, &str)| pushkey)
|
||||
.map(ToOwned::to_owned)
|
||||
}
|
||||
|
||||
#[tracing::instrument(skip(self, dest, request))]
|
||||
|
||||
@@ -540,7 +540,7 @@ impl super::Service {
|
||||
.ready_for_each(|push_key| {
|
||||
self.services
|
||||
.sending
|
||||
.send_pdu_push(pdu_id, user, push_key.to_owned())
|
||||
.send_pdu_push(pdu_id, user, push_key)
|
||||
.expect("TODO: replace with future");
|
||||
})
|
||||
.await;
|
||||
|
||||
Reference in new issue
Block a user