Images return full URI (excl. host)
This commit is contained in:
1 parent
215ed1bc7f
commit
93e5cebce0
5 files changed
+49
-7
No files matched your search
@@ -8,6 +8,7 @@ use Exception;
|
||||
use Khofmann\Models\User\User;
|
||||
use JsonSerializable;
|
||||
use Khofmann\ApiError\ApiError;
|
||||
use Khofmann\Config\Config;
|
||||
use Khofmann\Database\Database;
|
||||
use PDO;
|
||||
|
||||
@@ -27,7 +28,7 @@ class Post implements JsonSerializable
|
||||
$this->id = $id;
|
||||
$this->user = $user;
|
||||
$this->name = $name;
|
||||
$this->image = $image;
|
||||
$this->image = Config::getStoragePath() . $image;
|
||||
$this->content = $content;
|
||||
$this->postedAt = new DateTime($postedAt);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user