Add <link> tags in header to AS data

This commit is contained in:
Jonny Barnes 2017-09-13 16:25:27 +01:00
parent 0a9a17c2ab
commit 7a5452c727
2 changed files with 7 additions and 2 deletions

View file

@ -27,8 +27,9 @@ class NotesController extends Controller
->withCount(['webmentions As replies' => function ($query) {
$query->where('type', 'in-reply-to');
}])->paginate(10);
$aslink = config('app.url');
return view('notes.index', compact('notes'));
return view('notes.index', compact('notes', 'aslink'));
}
/**
@ -45,7 +46,9 @@ class NotesController extends Controller
return (new ActivityStreamsService)->singleNoteResponse($note);
}
return view('notes.show', compact('note'));
$aslink = $note->longurl;
return view('notes.show', compact('note', 'aslink'));
}
/**