Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make federation of unlisted videos an instance-level server preference #2802

Merged
merged 5 commits into from
Jun 3, 2020

Conversation

Tak
Copy link
Contributor

@Tak Tak commented May 28, 2020

As discussed on #944

The previous behavior is the default for the preference.
I've added tests for:

  • the preference itself
  • actual video federation based on the preference
  • accessing unlisted videos on the origin server

config/default.yaml Outdated Show resolved Hide resolved
server/helpers/express-utils.ts Outdated Show resolved Hide resolved
@Tak Tak force-pushed the disable-unlisted-federation branch from f1ceba9 to f0c559b Compare May 28, 2020 13:30
Copy link
Owner

@Chocobozzz Chocobozzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@@ -137,6 +137,11 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit, A
css: null
}
},
federation: {
videos: {
federateUnlisted: true
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want admins to update this setting on the web interface? If no, you can remove this

Copy link
Contributor Author

@Tak Tak May 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason not to allow this? I added it to production.yaml as well, based on your earlier comment.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason not to allow this?

It subjective, but it's not a setting admins will update frequently. So I don't think it's very useful to put this in the admin interface. But you're the one who does, so you're the one who decides :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I guess the main benefit would be discoverability.
I'm open to whatever you think - if you feel like it doesn't belong in the web interface, I'm willing to do the rework.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then let's move this out of the web interface. Admins should read the config' file when they install peertube, and we'll mention this in the changelog. You could also mention this setting in https://docs.joinpeertube.org/#/admin-following-instances?id=being-followed-by-an-instance

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, done

client/src/app/core/server/server.service.ts Outdated Show resolved Hide resolved
server/controllers/api/config.ts Outdated Show resolved Hide resolved
server/initializers/config.ts Outdated Show resolved Hide resolved
server/tests/api/check-params/config.ts Outdated Show resolved Hide resolved
server/tests/api/videos/video-privacy.ts Outdated Show resolved Hide resolved
@Chocobozzz
Copy link
Owner

Thanks @Tak!

@Chocobozzz Chocobozzz merged commit 3092e9b into Chocobozzz:develop Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants