Remove more media-library routines that I missed earlier

This commit is contained in:
Jonny Barnes 2017-03-10 10:21:51 +00:00
parent 46ebd38d6b
commit 63a8f49b64
2 changed files with 0 additions and 18 deletions

View file

@ -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'));
}

View file

@ -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>