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-date">
|
||||||
<div class="comment-account">
|
<div class="comment-account">
|
||||||
<a
|
<a [routerLink]="[ '/accounts', comment.by ]">
|
||||||
[routerLink]="[ '/accounts', comment.by ]"
|
<span class="comment-account-name" [ngClass]="{ 'video-author': video.account.id === comment.account.id }">
|
||||||
class="comment-account-name" [ngClass]="{ 'video-author': video.account.id === comment.account.id }"
|
{{ comment.account.displayName }}
|
||||||
>
|
</span>
|
||||||
{{ comment.account.displayName }}
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<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>
|
</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>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="comment-html"
|
class="comment-html"
|
||||||
[innerHTML]="sanitizedCommentHTML"
|
[innerHTML]="sanitizedCommentHTML"
|
||||||
|
|
|
@ -71,6 +71,10 @@
|
||||||
@include disable-default-a-behaviour;
|
@include disable-default-a-behaviour;
|
||||||
|
|
||||||
color: pvar(--mainForegroundColor);
|
color: pvar(--mainForegroundColor);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment-account-fid {
|
.comment-account-fid {
|
||||||
|
@ -83,6 +87,10 @@
|
||||||
color: pvar(--greyForegroundColor);
|
color: pvar(--greyForegroundColor);
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,6 @@ export const unusedActorAttributesForAPI = [
|
||||||
'sharedInboxUrl',
|
'sharedInboxUrl',
|
||||||
'followersUrl',
|
'followersUrl',
|
||||||
'followingUrl',
|
'followingUrl',
|
||||||
'url',
|
|
||||||
'createdAt',
|
'createdAt',
|
||||||
'updatedAt'
|
'updatedAt'
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue