From 2a491eac96cca96a033bdbb0efc69942076029eb Mon Sep 17 00:00:00 2001 From: IanM Date: Thu, 28 Mar 2024 09:39:27 +0000 Subject: [PATCH] $option->image_url --- src/Api/Controllers/DeletePollOptionImageController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Controllers/DeletePollOptionImageController.php b/src/Api/Controllers/DeletePollOptionImageController.php index 930ebfe9..2c66c0cc 100644 --- a/src/Api/Controllers/DeletePollOptionImageController.php +++ b/src/Api/Controllers/DeletePollOptionImageController.php @@ -53,7 +53,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface if (filter_var($option->image_url, FILTER_VALIDATE_URL)) { } else { $this->events->dispatch( - new PollImageDeleting($option->image, $actor) + new PollImageDeleting($option->image_url, $actor) ); // otherwise we check and delete it from the filesystem