mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +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))]
|
||||
|
||||
Reference in new issue
Block a user