feat: add public notes by author page
Extract note-list fetching into usePublicNoteList composable, add /pub/:did route to view notes from a single author, and make author aliases clickable links in both the note list and note view.
This commit is contained in:
@@ -90,7 +90,12 @@ watch(
|
||||
</div>
|
||||
|
||||
<span class="badge badge-author" v-if="author">
|
||||
{{ author.alias }}
|
||||
<router-link
|
||||
:to="{ name: 'PublicNoteListByDidView', params: { did: did } }"
|
||||
class="link link-hover"
|
||||
>
|
||||
{{ author.alias }}
|
||||
</router-link>
|
||||
<span v-if="publishedAt"> • {{ publishedAt }}</span>
|
||||
</span>
|
||||
<article class="note-display" v-html="content"></article>
|
||||
|
||||
Reference in New Issue
Block a user