Changed cron upload new image tagging to work with tag event's requirement for tags to not be empty.
This commit is contained in:
parent
3e2a0ea3b5
commit
5a2f893667
@ -319,7 +319,7 @@ class CronUploader extends Extension
|
||||
$metadata = [];
|
||||
$metadata ['filename'] = $pathinfo ['basename'];
|
||||
$metadata ['extension'] = $pathinfo ['extension'];
|
||||
$metadata ['tags'] = []; // = $tags; doesn't work when not logged in here
|
||||
$metadata ['tags'] = Tag::explode($tags);
|
||||
$metadata ['source'] = null;
|
||||
$event = new DataUploadEvent($tmpname, $metadata);
|
||||
send_event($event);
|
||||
@ -333,9 +333,6 @@ class CronUploader extends Extension
|
||||
}
|
||||
$msgNumber = $this->add_upload_info($infomsg);
|
||||
|
||||
// Set tags
|
||||
$img = Image::by_id($event->image_id);
|
||||
$img->set_tags(Tag::explode($tags));
|
||||
}
|
||||
|
||||
private function generate_image_queue(): void
|
||||
|
Loading…
x
Reference in New Issue
Block a user