Skip to content

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

Fix join in video events

Chocobozzzb869d19068f4
diff --git a/server/models/request/request-video-event.ts b/server/models/request/request-video-event.ts
index 34d5c71622..d7dce9bc83 100644
--- a/server/models/request/request-video-event.ts
+++ b/server/models/request/request-video-event.ts
@@ -102,15 +102,20 @@ listWithLimitAndRandom = function (limitPods: number, limitRequestsPerPod: numbe
model: RequestVideoEvent['sequelize'].models.Video,
include: [
{
- model: RequestVideoEvent['sequelize'].models.Author,
+ model: RequestVideoEvent['sequelize'].models.VideoChannel,
include: [
{
- model: RequestVideoEvent['sequelize'].models.Pod,
- where: {
- id: {
- $in: podIds
+ model: RequestVideoEvent['sequelize'].models.Author,
+ include: [
+ {
+ model: RequestVideoEvent['sequelize'].models.Pod,
+ where: {
+ id: {
+ $in: podIds
+ }
+ }
}
- }
+ ]
}
]
}
@@ -138,10 +143,15 @@ removeByRequestIdsAndPod = function (ids: number[], podId: number) {
model: RequestVideoEvent['sequelize'].models.Video,
include: [
{
- model: RequestVideoEvent['sequelize'].models.Author,
- where: {
- podId
- }
+ model: RequestVideoEvent['sequelize'].models.VideoChannel,
+ include: [
+ {
+ model: RequestVideoEvent['sequelize'].models.Author,
+ where: {
+ podId
+ }
+ }
+ ]
}
]
}