[ImageThumbnail] Finish image thumbnailing functionality
This commit is contained in:
@@ -23,6 +23,7 @@ namespace App\Entity;
|
||||
|
||||
use App\Core\DB\DB;
|
||||
use App\Core\Entity;
|
||||
use App\Util\Common;
|
||||
use DateTimeInterface;
|
||||
|
||||
/**
|
||||
@@ -227,6 +228,11 @@ class Attachment extends Entity
|
||||
}
|
||||
}
|
||||
|
||||
public function getPath()
|
||||
{
|
||||
return Common::config('attachments', 'dir') . $this->getFilename();
|
||||
}
|
||||
|
||||
public static function schemaDef(): array
|
||||
{
|
||||
return [
|
||||
|
Reference in New Issue
Block a user