forked from mirror/pixelfed
Update Media model
This commit is contained in:
parent
ff2c16fe74
commit
7a431af93a
1 changed files with 6 additions and 3 deletions
|
@ -78,6 +78,9 @@ class Media extends Model
|
|||
|
||||
public function mimeType()
|
||||
{
|
||||
if(!$this->mime) {
|
||||
return;
|
||||
}
|
||||
return explode('/', $this->mime)[0];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue