mirror of https://github.com/Chocobozzz/PeerTube
Fix comment account external URL
It did not work, and I think it's better to target the local account page anywaypull/3363/head
parent
a9d4c3c8ca
commit
d07b2944db
|
@ -21,18 +21,20 @@
|
|||
|
||||
<div class="comment-account-date">
|
||||
<div class="comment-account">
|
||||
<a
|
||||
[routerLink]="[ '/accounts', comment.by ]"
|
||||
class="comment-account-name" [ngClass]="{ 'video-author': video.account.id === comment.account.id }"
|
||||
>
|
||||
{{ comment.account.displayName }}
|
||||
</a>
|
||||
<a [routerLink]="[ '/accounts', comment.by ]">
|
||||
<span class="comment-account-name" [ngClass]="{ 'video-author': video.account.id === comment.account.id }">
|
||||
{{ comment.account.displayName }}
|
||||
</span>
|
||||
|
||||
<a [href]="comment.account.url" target="_blank" rel="noopener noreferrer" class="comment-account-fid ml-1">{{ comment.by }}</a>
|
||||
<span class="comment-account-fid ml-1">{{ comment.by }}</span>
|
||||
</a>
|
||||
</div>
|
||||
<a [routerLink]="['/videos/watch', video.uuid, { 'threadId': comment.threadId }]"
|
||||
class="comment-date" [title]="comment.createdAt">{{ comment.createdAt | myFromNow }}</a>
|
||||
|
||||
<a [routerLink]="['/videos/watch', video.uuid, { 'threadId': comment.threadId }]" class="comment-date" [title]="comment.createdAt">
|
||||
{{ comment.createdAt | myFromNow }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="comment-html"
|
||||
[innerHTML]="sanitizedCommentHTML"
|
||||
|
|
|
@ -71,6 +71,10 @@
|
|||
@include disable-default-a-behaviour;
|
||||
|
||||
color: pvar(--mainForegroundColor);
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.comment-account-fid {
|
||||
|
@ -83,6 +87,10 @@
|
|||
color: pvar(--greyForegroundColor);
|
||||
margin-left: 5px;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -62,7 +62,6 @@ export const unusedActorAttributesForAPI = [
|
|||
'sharedInboxUrl',
|
||||
'followersUrl',
|
||||
'followingUrl',
|
||||
'url',
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue