} from '@angular/core'
import { AuthService, ScreenService, ServerService, User } from '@app/core'
import { ServerConfig, VideoPlaylistType, VideoPrivacy, VideoState } from '@shared/models'
+import { ActorAvatarSize } from '../shared-actor-image/actor-avatar.component'
import { Video } from '../shared-main'
import { VideoPlaylistService } from '../shared-video-playlist'
import { VideoActionsDisplayType } from './video-actions-dropdown.component'
}
@Input() displayVideoActions = true
+ @Input() actorImageSize: ActorAvatarSize = '40'
+
@Input() displayAsRow = false
@Input() videoLinkType: VideoLinkType = 'internal'
buildVideoLink () {
if (this.videoLinkType === 'internal' || !this.video.url) {
- this.videoRouterLink = [ '/videos/watch', this.video.uuid ]
+ this.videoRouterLink = [ '/w', this.video.uuid ]
return
}
return ''
}
- getAvatarUrl () {
- if (this.displayOwnerAccount()) {
- return this.video.account.avatar?.url
- }
-
- return this.video.videoChannelAvatarUrl
- }
-
loadActions () {
if (this.displayVideoActions) this.showActions = true