forked from mirror/pixelfed
Update Newsroom model, add editUrl() method
This commit is contained in:
parent
481954445e
commit
fd7460c433
1 changed files with 5 additions and 0 deletions
|
@ -19,4 +19,9 @@ class Newsroom extends Model
|
||||||
|
|
||||||
return url("/site/newsroom/{$year}/{$month}/{$slug}");
|
return url("/site/newsroom/{$year}/{$month}/{$slug}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function editUrl()
|
||||||
|
{
|
||||||
|
return url("/i/admin/newsroom/edit/{$this->id}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue