forked from blisstown/campfire
show posts on profile page
This commit is contained in:
parent
d8efaccb30
commit
455679a525
7 changed files with 158 additions and 10 deletions
|
@ -14,7 +14,7 @@
|
|||
const lang = Lang('en_GB');
|
||||
|
||||
let mention = (accounts) => {
|
||||
let res = `<a href=${account.url}>${account.rich_name}</a>`;
|
||||
let res = `<a href="/${$server.host}/${account.fqn}">${account.rich_name}</a>`;
|
||||
if (accounts.length > 1) res += ' ' + lang.string('notification.and_others').replaceAll('%1', accounts.length - 1);
|
||||
return res;
|
||||
};
|
||||
|
@ -90,7 +90,7 @@
|
|||
</span>
|
||||
<span class="notif-avatars">
|
||||
{#if data.accounts.length == 1}
|
||||
<a href={data.accounts[0].url} class="notif-avatar">
|
||||
<a href="/{$server.host}/{data.accounts[0].fqn}" class="notif-avatar">
|
||||
<img src={data.accounts[0].avatar_url} alt="" width="28" height="28" />
|
||||
</a>
|
||||
{:else}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue