Commit Graph

985 Commits

Author SHA1 Message Date
Chocobozzz
c3edc5b074
Merge branch 'release/4.0.0' into develop 2022-01-06 13:31:37 +01:00
Chocobozzz
795212f7ac
Prevent caption listing of private videos 2022-01-06 13:27:29 +01:00
Chocobozzz
7b54a81ccc
Prevent video import on non unicast ips 2022-01-06 11:16:35 +01:00
Chocobozzz
b18a501a0e
Try to fix docker build 2022-01-03 14:20:56 +01:00
Chocobozzz
0628157fe9
Move uuid stuff in extra utils
Since it requires an external dependency
2021-12-29 14:44:58 +01:00
Chocobozzz
fb3c9e2bf5
Translate plugin settings 2021-12-29 14:08:07 +01:00
Chocobozzz
81d02aac56
Fix types package dependencies 2021-12-28 15:10:55 +01:00
Chocobozzz
10a72a7e61
Fix tests 2021-12-28 14:12:57 +01:00
Chocobozzz
f1569117f9
Cleanup unavailable remote AP resource 2021-12-28 11:37:05 +01:00
Chocobozzz
21d68e6803
Add version to generate types packages 2021-12-28 10:27:06 +01:00
Chocobozzz
656ed49f24
Increase timeout 2021-12-24 15:19:45 +01:00
Chocobozzz
6def7d34e6
Fix migrations 2021-12-17 14:27:16 +01:00
Chocobozzz
c55e3d7227
Move test functions outside extra-utils 2021-12-17 12:24:03 +01:00
Chocobozzz
bf54587a3e
shared/ typescript types dir server-commands 2021-12-17 09:29:23 +01:00
Chocobozzz
b65de1be4d
Use different p2p policy for embeds and webapp 2021-12-16 10:08:55 +01:00
Chocobozzz
a9bfa85d2c
Add ability for admins to set default p2p policy 2021-12-16 10:08:55 +01:00
lutangar
06aad80165 chore(refactor): remove shared folder dependencies to the server
Many files from the `shared` folder were importing files from the `server` folder.
When attempting to use Typescript project references to describe dependencies,
it highlighted a circular dependency beetween `shared` <-> `server`.

The Typescript project forbid such usages.
Using project references greatly improve performance by rebuilding only
the updated project and not all source files.
> see https://www.typescriptlang.org/docs/handbook/project-references.html
2021-12-16 10:08:43 +01:00
Chocobozzz
854f533c12
Fix lint 2021-12-14 17:38:59 +01:00
Chocobozzz
3cf68b869d
Ability for admins to set default upload values 2021-12-14 17:17:01 +01:00
Chocobozzz
a6f919e455
Increase timeout 2021-12-14 14:21:29 +01:00
kontrollanten
a37e9e74ff
Give moderators access to edit channels (#4608)
* give admins access to edit all channels

closes #4598

* test(channels): +admin update another users channel

* Fix tests

* fix(server): delete another users channel

Since the channel owner isn't necessary the auth user we need to check
the right account whether it's the last video or not.

* REMOVE_ANY_VIDEO_CHANNEL > MANAGE_ANY_VIDEO_CHANNEL

Merge REMOVE_ANY_VIDEO_CHANNEL and MANY_VIDEO_CHANNELS to
MANAGE_ANY_VIDEO_CHANNEL.

* user-right: moderator can't manage admins channel

* client: MyVideoChannelCreateComponent > VideoChannelCreateComponent

* client: MyVideoChannelEdit > VideoChannelEdit

* Revert "user-right: moderator can't manage admins channel"

This reverts commit 2c627c154e.

* server: clean dupl validator functionality

* fix ensureUserCanManageChannel usage

It's not async anymore.

* server: merge channel validator middleares

ensureAuthUserOwnsChannelValidator & ensureUserCanManageChannel gets
merged into one middleware.

* client(VideoChannelEdit): redirect to prev route

* fix(VideoChannels): handle anon users

* client: new routes for create/update channel

* Refactor channel validators

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-12-13 15:29:13 +01:00
Chocobozzz
0fbc0dec59
Fix tests 2021-12-09 15:44:54 +01:00
Chocobozzz
9e847c17f9
No notification on moderator abuse 2021-12-09 14:27:32 +01:00
Chocobozzz
636d73c588
Merge branch 'release/4.0.0' into develop 2021-12-07 13:47:34 +01:00
Chocobozzz
7e44bd4a6f
Fix services tests 2021-12-07 13:47:26 +01:00
Chocobozzz
80badf493a
Add mute status in account and channel pages 2021-12-07 09:46:01 +01:00
Chocobozzz
33675a4775
Increase timeout 2021-12-06 10:05:05 +01:00
Chocobozzz
0bc53e2029
Add ability to redirect users on external auth 2021-12-03 17:04:47 +01:00
Chocobozzz
7137377d09
Auto update publishedAt in live restream 2021-11-26 17:36:55 +01:00
Chocobozzz
842a15732b
Ensure we don't run transcoding after import file 2021-11-23 15:22:07 +01:00
Chocobozzz
5d3c5f2797
Fix typo 2021-11-19 08:26:22 +01:00
Chocobozzz
4842e518be
Fetch publishedAt after wait jobs
To make sure it's published
2021-11-18 16:30:25 +01:00
Chocobozzz
ad5db1044c
Add ability to run transcoding jobs 2021-11-18 15:20:57 +01:00
Chocobozzz
b46cf4b920
Add ability to remove hls/webtorrent files 2021-11-18 09:04:30 +01:00
Chocobozzz
1740952b8c
Add more logs for video import tests 2021-11-16 08:59:35 +01:00
Chocobozzz
5c08e1c29d
Increase live transcoding test timeout 2021-11-15 15:59:19 +01:00
Chocobozzz
60409162e6
Fix tests cleanup 2021-11-15 09:37:19 +01:00
Chocobozzz
aaef591b17
Fix live tests 2021-11-15 09:26:56 +01:00
Chocobozzz
527a52ac42
Add ability to filter out public videos from admin 2021-11-12 14:23:22 +01:00
Chocobozzz
5cf027bdc4
Force video updatedAt update on update 2021-11-10 14:34:02 +01:00
Chocobozzz
d78b51aa4e
Fix tests 2021-11-10 14:25:33 +01:00
Chocobozzz
020d3d3d79
Remove resumable cache after upload success 2021-11-10 09:43:33 +01:00
Chocobozzz
51353d9a03 Refactor video views
Introduce viewers attribute for live videos
Count views for live videos
Reduce delay to see the viewer update for lives
Add ability to configure video views buffer interval and view ip
expiration
2021-11-09 15:00:31 +01:00
Chocobozzz
df1db951c5
Support RTMPS 2021-11-05 11:38:17 +01:00
Florian CUNY
8dd754c767
Added 144p encoding (#4492)
* Added 144p encoding

Implements https://github.com/Chocobozzz/PeerTube/issues/4428

* Fixed typo in core-utils

* Increased BitPerPixel for 144p

* Disabled 144p by default in test.yaml

* Another try at fixing tests

* Fixed test in video-transcoder (api-3)

* Fixed test in video-imports (api-4)

* Fixed test in live-constraints (api-2)

* Tried to fix tests in api-3 again

* Revert "Tried to fix tests in api-3 again"

This reverts commit 266e1143fa37f333d149c2c2791c7bd33621ac14.

* Fixed test in config.ts (api-2)

* Try to fix test in video-hls.ts (api-3)

* Fixed test in video-transcoder.ts (api-3)

* Fix tests

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-11-05 10:23:02 +01:00
Chocobozzz
d324756edb
Add ability to filter by file type 2021-11-03 11:32:41 +01:00
Chocobozzz
3c10840fa9 Add video file size info in admin videos list 2021-10-29 11:48:21 +02:00
Chocobozzz
2760b454a7 Deprecate filter video query
Introduce include and isLocal instead
2021-10-29 11:48:21 +02:00
Florian CUNY
754b6f5f41
Made the video channels limit (per user) server-wide configurable (#4491)
* Made the video channels limit (per user) server-wide configurable

Implements https://github.com/Chocobozzz/PeerTube/issues/3092

Also added a "quota bar" in the account's settings page

* Fixed lint errors

* Another pass at fixing lint errors

* Applied code suggestions

* Removed 'video channels quota'
2021-10-26 16:42:10 +02:00
Rigel Kent
276250f0a3
prevent multiple post-process triggering of upload-resumable (#4175)
* prevent multiple post-process triggering of upload-resumable

* switch from 409 to 503 for upload being processed

* Improve resumable upload check

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-10-25 17:42:20 +02:00