1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 15:55:14 +00:00

Update Story model

This commit is contained in:
Daniel Supernault 2020-01-05 21:53:09 -07:00
parent 7654205408
commit 034fdb4d42
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -46,4 +46,9 @@ class Story extends Model
->whereProfileId(Auth::user()->profile->id)
->exists();
}
public function permalink()
{
return url("/story/$this->id");
}
}