Add <link> tags in header to AS data
This commit is contained in:
parent
0a9a17c2ab
commit
7a5452c727
2 changed files with 7 additions and 2 deletions
|
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue