Remove more media-library routines that I missed earlier
This commit is contained in:
parent
46ebd38d6b
commit
63a8f49b64
2 changed files with 0 additions and 18 deletions
|
@ -58,12 +58,6 @@ class NotesController extends Controller
|
|||
$note->place->icon
|
||||
);
|
||||
}
|
||||
$photoURLs = [];
|
||||
$photos = $note->getMedia();
|
||||
foreach ($photos as $photo) {
|
||||
$photoURLs[] = $photo->getUrl();
|
||||
}
|
||||
$note->photoURLs = $photoURLs;
|
||||
}
|
||||
|
||||
$homepage = ($request->path() == '/');
|
||||
|
@ -164,13 +158,6 @@ class NotesController extends Controller
|
|||
);
|
||||
}
|
||||
|
||||
$photoURLs = [];
|
||||
$photos = $note->getMedia();
|
||||
foreach ($photos as $photo) {
|
||||
$photoURLs[] = $photo->getUrl();
|
||||
}
|
||||
$note->photoURLs = $photoURLs;
|
||||
|
||||
return view('notes.show', compact('note', 'replies', 'reposts', 'likes'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue