Allow files to be added to notes

This is specifically when a Micropub client is using the JSON syntax and
initially uploads the photo via the media endpoint
This commit is contained in:
Jonny Barnes 2025-12-27 17:55:29 +00:00
commit 76db869af5
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
11 changed files with 33 additions and 23 deletions

View file

@ -43,7 +43,8 @@ class ProcessMediaJobTest extends TestCase
{
$manager = app()->make(ImageManager::class);
Storage::disk('local')->put('media/test-image.jpg', file_get_contents(__DIR__.'/../../test-image.jpg'));
$job = new ProcessMedia('test-image.jpg');
ray(Storage::disk('local')->get('media/test-image.jpg'));
$job = new ProcessMedia('media/test-image.jpg');
$job->handle($manager);
// These need to look in public disk