Update status embed, allow photo albums. Fixes #2374
This commit is contained in:
parent
3b7ff030f2
commit
d11fac0dfb
2 changed files with 30 additions and 30 deletions
|
@ -68,7 +68,8 @@ class StatusController extends Controller
|
|||
|
||||
public function shortcodeRedirect(Request $request, $id)
|
||||
{
|
||||
if(strlen($id) < 5 || !Auth::check()) {
|
||||
abort_if(strlen($id) < 5, 404);
|
||||
if(!Auth::check()) {
|
||||
return redirect('/login?next='.urlencode('/' . $request->path()));
|
||||
}
|
||||
$id = HashidService::decode($id);
|
||||
|
@ -99,7 +100,7 @@ class StatusController extends Controller
|
|||
->whereNull('uri')
|
||||
->whereScope('public')
|
||||
->whereIsNsfw(false)
|
||||
->whereIn('type', ['photo', 'video'])
|
||||
->whereIn('type', ['photo', 'video','photo:album'])
|
||||
->find($id);
|
||||
if(!$status) {
|
||||
$content = view('status.embed-removed');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue