1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 07:42:41 +00:00

Update ImportJob model

This commit is contained in:
Daniel Supernault 2018-09-16 16:53:21 -06:00
parent dd134ba5e3
commit 964066da44
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -6,6 +6,11 @@ use Illuminate\Database\Eloquent\Model;
class ImportJob extends Model
{
public function profile()
{
return $this->belongsTo(Profile::class, 'profile_id');
}
public function url()
{
return url("/i/import/job/{$this->uuid}/{$this->stage}");