1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 00:05:29 +00:00

Update Media model

This commit is contained in:
Daniel Supernault 2018-10-16 12:31:29 -06:00
parent 851c441319
commit 4688e6c605
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -55,4 +55,9 @@ class Media extends Model
}
return $verb;
}
public function getMetadata()
{
return json_decode($this->metadata, true, 3);
}
}