Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix avatars on video watch page

Chocobozzzb6a4fd6b099b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1e5f7f8f2d..eadbb1cce1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+
+## v0.0.25-alpha
+
+### Bug fixes
+
+ * Fix avatars on video watch page
+
+
## v0.0.24-alpha
### Features
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index d748e81bd5..aa1878caac 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -68,6 +68,7 @@ import { sendDeleteVideo } from '../../lib/activitypub/send'
import { AccountModel } from '../account/account'
import { AccountVideoRateModel } from '../account/account-video-rate'
import { ActorModel } from '../activitypub/actor'
+import { AvatarModel } from '../avatar/avatar'
import { ServerModel } from '../server/server'
import { getSort, throwIfNotValid } from '../utils'
import { TagModel } from './tag'
@@ -175,6 +176,10 @@ enum ScopeNames {
attributes: [ 'host' ],
model: () => ServerModel.unscoped(),
required: false
+ },
+ {
+ model: () => AvatarModel.unscoped(),
+ required: false
}
]
}