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'));
|
||||
}
|
||||
|
||||
|
|
|
@ -8,11 +8,6 @@
|
|||
<div class="note">
|
||||
<div class="e-content p-name">
|
||||
{!! $note->note !!}
|
||||
@if(count($note->photoURLs) > 0)
|
||||
@foreach($note->photoURLs as $photoURL)
|
||||
<img src="{{ $photoURL }}" alt="" class="note-photo u-photo">
|
||||
@endforeach
|
||||
@endif
|
||||
</div>
|
||||
<div class="note-metadata">
|
||||
<div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue