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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
<link rel="alternate" type="application/rss+xml" title="Notes RSS Feed" href="/notes/feed.rss">
|
||||
<link rel="alternate" type="application/atom+xml" title="Notes Atom Feed" href="/notes/feed.atom">
|
||||
<link rel="alternate" type="application/json" title="Notes JSON Feed" href="/notes/feed.json">
|
||||
@isset($aslink) <link rel="alternate" type="application/activity+json" href="{{ $aslink }}">
|
||||
@endisset
|
||||
<link rel="openid.server" href="https://indieauth.com/openid">
|
||||
<link rel="openid.delegate" href="{{ config('app.url') }}">
|
||||
<link rel="authorization_endpoint" href="https://indieauth.com/auth">
|
||||
|
|
Loading…
Add table
Reference in a new issue