Skip to content

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

Fixing circular dependency and table variable access

Rigel Kent042daa7072c0
diff --git a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
index e4e78cdf70..0c727ae90d 100644
--- a/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
+++ b/client/src/app/+admin/moderation/video-abuse-list/video-abuse-list.component.ts
@@ -223,7 +223,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
}
getVideoEmbed (videoAbuse: VideoAbuse) {
- const absoluteAPIUrl = 'http://localhost:9000' || getAbsoluteAPIUrl() // TODO
+ const absoluteAPIUrl = getAbsoluteAPIUrl()
const embedUrl = buildVideoLink({
baseUrl: absoluteAPIUrl + '/videos/embed/' + videoAbuse.video.uuid,
warningTitle: false
@@ -262,7 +262,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
protected loadData () {
return this.videoAbuseService.getVideoAbuses({
pagination: this.pagination,
- sort: this.sort,
+ sort: this.sort,
search: this.search
}).subscribe(
async resultList => {
diff --git a/client/src/app/shared/rest/rest-table.ts b/client/src/app/shared/rest/rest-table.ts
index 63e0e1b976..5954a7ba18 100644
--- a/client/src/app/shared/rest/rest-table.ts
+++ b/client/src/app/shared/rest/rest-table.ts
@@ -11,7 +11,7 @@ export abstract class RestTable {
abstract sort: SortMeta
abstract pagination: RestPagination
- protected search: string
+ search: string
private searchStream: Subject<string>
abstract getIdentifier (): string