ActivityPub-federated video streaming platform using P2P directly in your web browser
Remove update embed privacy
Chocobozzz3a31da20c5b3
diff --git a/client/src/app/+videos-publish-manage/shared-manage/moderation/video-moderation.component.ts b/client/src/app/+videos-publish-manage/shared-manage/moderation/video-moderation.component.tsindex fba6d09c06..bf635a9e7e 100644--- a/client/src/app/+videos-publish-manage/shared-manage/moderation/video-moderation.component.ts+++ b/client/src/app/+videos-publish-manage/shared-manage/moderation/video-moderation.component.ts@@ -1,12 +1,19 @@import { CommonModule } from '@angular/common'-import { Component, OnDestroy, OnInit, inject, ChangeDetectionStrategy } from '@angular/core'+import { ChangeDetectionStrategy, Component, OnDestroy, OnInit, inject } from '@angular/core'import { FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'import { RouterLink } from '@angular/router'import { ServerService } from '@app/core'import { BuildFormArgument } from '@app/shared/form-validators/form-validator.model'+import { UNIQUE_HOSTS_VALIDATOR } from '@app/shared/form-validators/host-validators'import { VIDEO_NSFW_SUMMARY_VALIDATOR } from '@app/shared/form-validators/video-validators'-import { FormReactiveErrors, FormReactiveService, FormReactiveMessages } from '@app/shared/shared-forms/form-reactive.service'-import { HTMLServerConfig, VideoCommentPolicyType, VideoEmbedPrivacyPolicy, VideoEmbedPrivacyPolicyType, ConstantLabel } from '@peertube/peertube-models'+import { FormReactiveErrors, FormReactiveMessages, FormReactiveService } from '@app/shared/shared-forms/form-reactive.service'+import {+ ConstantLabel,+ HTMLServerConfig,+ VideoCommentPolicyType,+ VideoEmbedPrivacyPolicy,+ VideoEmbedPrivacyPolicyType+} from '@peertube/peertube-models'import debug from 'debug'import { Subscription } from 'rxjs'import { PeertubeCheckboxComponent } from '../../../shared/shared-forms/peertube-checkbox.component'@@ -14,7 +21,6 @@ import { SelectRadioComponent } from '../../../shared/shared-forms/select/selectimport { GlobalIconComponent } from '../../../shared/shared-icons/global-icon.component'import { PeerTubeTemplateDirective } from '../../../shared/shared-main/common/peertube-template.directive'import { VideoManageController } from '../video-manage-controller.service'-import { UNIQUE_HOSTS_VALIDATOR } from '@app/shared/form-validators/host-validators'const debugLogger = debug('peertube:video-manage')diff --git a/client/src/app/shared/shared-share-modal/share-video.component.html b/client/src/app/shared/shared-share-modal/share-video.component.htmlindex 6e11190843..d54155f618 100644--- a/client/src/app/shared/shared-share-modal/share-video.component.html+++ b/client/src/app/shared/shared-share-modal/share-video.component.html@@ -19,33 +19,15 @@<my-alert i18n type="primary">This video is password protected, please note that recipients will require the corresponding password to access the content.</my-alert>- } @else if (video().hasEmbedDisabled()) {+ } @else if (video().hasEmbedDisabled()) { <!-- Display above all tabs so the user understands why embed tab is hidden --><my-alert type="primary">- <div i18n>- The owner of this video disabled embedding, so it can only be shared using the direct link or the QR code.- </div>-- <a- i18n- class="peertube-button-link secondary-button mt-3"- [routerLink]="[ '/videos/', 'manage', video().shortUUID, 'moderation' ]"- target="_blank"- rel="noopener noreferrer"- >Update embed privacy</a>+ <div i18n>Embedding of this video is disabled, so it can only be shared via the direct link or QR code.</div></my-alert>} @else if (video().hasEmbedRestrictions() && isInEmbedTab()) {<my-alert type="primary"><div i18n>This video has embed restrictions and may not be shareable on external websites depending on the chosen restrictions.</div>-- <a- i18n- class="peertube-button-link secondary-button mt-3"- [routerLink]="[ '/videos/', 'manage', video().shortUUID, 'moderation' ]"- target="_blank"- rel="noopener noreferrer"- >Update embed privacy</a></my-alert>}diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yamlindex 2499aaf1db..4ef63a34fb 100644--- a/support/doc/api/openapi.yaml+++ b/support/doc/api/openapi.yaml@@ -14375,7 +14375,7 @@ components:- 1- 2- 3- - 4<+ - 4description: >The video embed privacy level:- `1` All allowed: anyone can embed the video