Use newer media library package, eager load media, use non-aliased save media method
This commit is contained in:
parent
3a0bd61e2d
commit
2a692fdd78
4 changed files with 38 additions and 39 deletions
|
@ -19,7 +19,7 @@ class NotesController extends Controller
|
|||
*/
|
||||
public function showNotes()
|
||||
{
|
||||
$notes = Note::orderBy('id', 'desc')->with('webmentions', 'place')->simplePaginate(10);
|
||||
$notes = Note::orderBy('id', 'desc')->with('webmentions', 'place', 'media')->simplePaginate(10);
|
||||
foreach ($notes as $note) {
|
||||
$replies = 0;
|
||||
foreach ($note->webmentions as $webmention) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue