Fix client URLs for channels and accounts

This commit is contained in:
Chocobozzz
2023-12-08 08:55:15 +01:00
parent 2fde12d7e1
commit 8a22cfd628
3 changed files with 4 additions and 4 deletions

View File

@@ -457,7 +457,7 @@ export class AccountModel extends Model<Partial<AttributesOnly<AccountModel>>> {
// Avoid error when running this method on MAccount... | MChannel...
getClientUrl (this: MAccountHost | MChannelHost) {
return WEBSERVER.URL + '/a/' + this.Actor.getIdentifier()
return WEBSERVER.URL + '/a/' + this.Actor.getIdentifier() + '/video-channels'
}
isBlocked () {

View File

@@ -841,7 +841,7 @@ export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannel
// Avoid error when running this method on MAccount... | MChannel...
getClientUrl (this: MAccountHost | MChannelHost) {
return WEBSERVER.URL + '/c/' + this.Actor.getIdentifier()
return WEBSERVER.URL + '/c/' + this.Actor.getIdentifier() + '/videos'
}
getDisplayName () {