WIP: storage-fix-local-nas work before playlist controls feature
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
1 parent
6b3ab5b65e
commit
c160242dbc
46 files changed
+5365
-815
No files matched your search
@@ -15,6 +15,9 @@ class PostImage extends Model
|
||||
|
||||
public function getImageUrlAttribute(): string
|
||||
{
|
||||
if (str_starts_with($this->filename, 'users/')) {
|
||||
return route('media.post-image', $this->filename);
|
||||
}
|
||||
return asset('storage/post_images/' . $this->filename);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user