add mastodon link to user home
This commit is contained in:
parent
cae8f608ac
commit
71c7ba84d0
2 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,8 @@ $(document).ready( function() {
|
|||
} else {
|
||||
userName = userData.username;
|
||||
}
|
||||
//$("#userInfoCard .mast-acct").text(userData.acct);
|
||||
$("#userInfoCard .mast-acct").attr("href", userData.url);
|
||||
$("#userInfoCard .mast-avatar").attr("src", userData.avatar);
|
||||
$("#userInfoCard .mast-displayname").html(userName);
|
||||
$("#userInfoCard .mast-brief").text($("<div>"+userData.note.replace(/\<br/g,'\n<br').replace(/\<p/g,'\n<p')+"</div>").text());
|
||||
|
|
|
@ -488,6 +488,7 @@
|
|||
<h5 class="user-profile__username mast-displayname"></h5>
|
||||
</a>
|
||||
</div>
|
||||
<p><a class="user-profile__link mast-acct" target="_blank" href="https://{{ user.mastodon_site }}/@{{ user.username }}">@{{ user.username }}@{{ user.mastodon_site }}</a></p>
|
||||
<p class="user-profile__bio mast-brief"></p>
|
||||
<!-- <a href="#" class="follow">{% trans '关注TA' %}</a> -->
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue