File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
crates/api/src/site/purge Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ pub async fn purge_person(
26
26
// Only let admin purge an item
27
27
is_admin ( & local_user_view) ?;
28
28
29
- // Read the person to get their images
30
- let person_id = data. person_id ;
31
- let person = Person :: read ( & mut context. pool ( ) , person_id) . await ?;
32
-
33
29
// Read the person to get their images
34
30
let person_id = data. person_id ;
35
31
@@ -38,7 +34,7 @@ pub async fn purge_person(
38
34
ImageUpload :: get_all_by_local_user_id ( & mut context. pool ( ) , & local_user. id ) . await ?;
39
35
40
36
for upload in pictrs_uploads {
41
- delete_image_from_pictrs ( & upload. pictrs_alias , & upload. pictrs_delete_token , context)
37
+ delete_image_from_pictrs ( & upload. pictrs_alias , & upload. pictrs_delete_token , & context)
42
38
. await
43
39
. ok ( ) ;
44
40
}
You can’t perform that action at this time.
0 commit comments