Skip to content

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

Don't use @shared in models

Chocobozzz0fecf427d349
diff --git a/shared/models/activitypub/objects/common-objects.ts b/shared/models/activitypub/objects/common-objects.ts
index 711ce45f45..43e8ea0672 100644
--- a/shared/models/activitypub/objects/common-objects.ts
+++ b/shared/models/activitypub/objects/common-objects.ts
@@ -1,4 +1,4 @@
-import { AbusePredefinedReasonsString } from '@shared/models'
+import { AbusePredefinedReasonsString } from '../../moderation/abuse/abuse-reason.model'
export interface ActivityIdentifierObject {
identifier: string
diff --git a/shared/models/moderation/abuse/abuse-message.model.ts b/shared/models/moderation/abuse/abuse-message.model.ts
index 6424966460..9edd9daff7 100644
--- a/shared/models/moderation/abuse/abuse-message.model.ts
+++ b/shared/models/moderation/abuse/abuse-message.model.ts
@@ -1,4 +1,4 @@
-import { AccountSummary } from '@shared/models'
+import { AccountSummary } from '../../actors/account.model'
export interface AbuseMessage {
id: number
diff --git a/shared/models/plugins/plugin-video-privacy-manager.model.ts b/shared/models/plugins/plugin-video-privacy-manager.model.ts
index c0e8117b52..3ada99608c 100644
--- a/shared/models/plugins/plugin-video-privacy-manager.model.ts
+++ b/shared/models/plugins/plugin-video-privacy-manager.model.ts
@@ -1,4 +1,4 @@
-import { VideoPrivacy } from '@shared/models/videos/video-privacy.enum'
+import { VideoPrivacy } from '../videos/video-privacy.enum'
export interface PluginVideoPrivacyManager {
// PUBLIC = 1
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts
index 61010e5a86..c643e60179 100644
--- a/shared/models/server/job.model.ts
+++ b/shared/models/server/job.model.ts
@@ -1,6 +1,6 @@
-import { SendEmailOptions } from './emailer.model'
-import { VideoResolution } from '@shared/models'
import { ContextType } from '../activitypub/context'
+import { VideoResolution } from '../videos/video-resolution.enum'
+import { SendEmailOptions } from './emailer.model'
export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed'
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts
index 859736b2fb..2c24d81be5 100644
--- a/shared/models/users/user.model.ts
+++ b/shared/models/users/user.model.ts
@@ -4,7 +4,7 @@ import { UserRole } from './user-role'
import { NSFWPolicyType } from '../videos/nsfw-policy.type'
import { UserNotificationSetting } from './user-notification-setting.model'
import { UserAdminFlag } from './user-flag.model'
-import { VideoPlaylistType } from '@shared/models'
+import { VideoPlaylistType } from '../videos/playlist/video-playlist-type.model'
export interface User {
id: number
diff --git a/shared/models/videos/video-file.model.ts b/shared/models/videos/video-file.model.ts
index cbef05ac07..e9839229d2 100644
--- a/shared/models/videos/video-file.model.ts
+++ b/shared/models/videos/video-file.model.ts
@@ -1,5 +1,6 @@
-
-import { VideoConstant, VideoFileMetadata, VideoResolution } from '@shared/models'
+import { VideoConstant } from './video-constant.model'
+import { VideoFileMetadata } from './video-file-metadata'
+import { VideoResolution } from './video-resolution.enum'
export interface VideoFile {
magnetUri: string
diff --git a/shared/models/videos/video-streaming-playlist.model.ts b/shared/models/videos/video-streaming-playlist.model.ts
index 42fce4bdcf..a07d911dcb 100644
--- a/shared/models/videos/video-streaming-playlist.model.ts
+++ b/shared/models/videos/video-streaming-playlist.model.ts
@@ -1,5 +1,5 @@
import { VideoStreamingPlaylistType } from './video-streaming-playlist.type'
-import { VideoFile } from '@shared/models/videos/video-file.model'
+import { VideoFile } from './video-file.model'
export class VideoStreamingPlaylist {
id: number