Commit Graph

759 Commits

Author SHA1 Message Date
Chocobozzz
094ff8e692
Fix mocha commands 2019-07-29 14:16:03 +02:00
Chocobozzz
2284f20207
Add gitlab ci support 2019-07-29 13:40:39 +02:00
Chocobozzz
ba211e7386
Add public settings endpoint 2019-07-26 15:18:29 +02:00
Chocobozzz
c8861d5dc0
Fix express validator 2019-07-25 16:23:44 +02:00
Chocobozzz
9ae88819c2
Change plugin models names 2019-07-24 11:17:42 +02:00
Chocobozzz
5f189c9c85 Add hooks documentation 2019-07-24 10:58:16 +02:00
Chocobozzz
24163420dd Add retries to travis mocha 2019-07-24 10:58:16 +02:00
Chocobozzz
09071200c7 Add plugin API tests 2019-07-24 10:58:16 +02:00
Chocobozzz
9b474844e8 Add CLI plugins tests 2019-07-24 10:58:16 +02:00
Chocobozzz
60cfd4cb54 Add plugins check params tests 2019-07-24 10:58:16 +02:00
Chocobozzz
109d893ff5 Fix lint 2019-07-24 10:58:16 +02:00
Chocobozzz
8d2be0ed7b WIP plugins: move plugin CLI in peertube script
Install/uninstall/list plugins remotely
2019-07-24 10:58:16 +02:00
Chocobozzz
7cd4d2ba10 WIP plugins: add theme support 2019-07-24 10:58:16 +02:00
Chocobozzz
c1340a6ac3
Add rate limit to registration and API endpoints 2019-07-04 16:42:40 +02:00
Nassim Bounouas
50b4dcce56 Fix/connection with email (#1917)
* #1916 Load user by email - insensitive query

* Revert "Case insensitive login"

This reverts commit c1521ca3d7.

* #1916 Load user - insensitive query for username and sensitive for email

* #1916 Unit test for insensitive username login && documentation
2019-07-02 11:16:33 +02:00
Nassim Bounouas
4e9fa5b7e9 Feature/subject in contact form (#1926)
* #1915 Add a subject to contact form and add it to email sent

* #1915 Add subject to contact form tests

* #1915 Contact form test corrected && tslint correction
2019-06-21 08:49:35 +02:00
Chocobozzz
3caf77d3b1
Add language filters in user preferences 2019-06-19 15:05:36 +02:00
Chocobozzz
db714ab48a
Fix notification overflow 2019-06-13 09:21:18 +02:00
Chocobozzz
675a8fc74f
Fix user tests 2019-06-11 16:13:50 +02:00
Chocobozzz
5efab5467c
Add more embed parameters 2019-06-11 16:05:03 +02:00
Chocobozzz
d1ab89deb7
Handle email update on server 2019-06-11 14:31:11 +02:00
Chocobozzz
1f20622f2b
Improve registration
* Add ability to set the user display name
 * Use display name to guess the username/channel name
 * Add explanations about what is the purpose of a username/channel name
 * Add a loader at the "done" step
2019-06-07 17:05:42 +02:00
Chocobozzz
b91bc1d1f3
Merge branch 'release/v1.3.0' into develop 2019-06-07 15:04:41 +02:00
Chocobozzz
03371ad9d0
Fix video import if autoblacklist is enabled 2019-06-07 14:35:53 +02:00
Chocobozzz
1b319b7aa6
Add ability to unpublish video/playlist 2019-06-06 17:29:15 +02:00
Chocobozzz
46a6db245f
Add ability to set to private a public/unlisted video 2019-06-06 16:44:02 +02:00
Chocobozzz
7d14d4d2ca
Server: Bulk update videos support field 2019-05-31 16:44:46 +02:00
Chocobozzz
57cfff7885
Remove unused actor uuid field 2019-05-31 14:49:31 +02:00
Chocobozzz
91b6631984
Add pagination to account video channels endpoint 2019-05-29 15:09:38 +02:00
Chocobozzz
1d5342abc4
Multi step registration 2019-05-29 11:19:54 +02:00
Chocobozzz
e590b4a512
Add ability to specify channel on registration 2019-05-28 10:46:32 +02:00
Chocobozzz
4d09cfba78
Fix playlist get for classic users 2019-05-28 10:16:59 +02:00
Chocobozzz
964298de4e
Fix playlist get for classic users 2019-05-28 09:50:27 +02:00
Chocobozzz
80b8ad2a70
Update travis ffmpeg patch version 2019-05-17 16:50:52 +02:00
Chocobozzz
b345a8047b
Add audio upload tests 2019-05-17 14:04:54 +02:00
Chocobozzz
536598cfaf
Add audio support in upload 2019-05-16 17:16:47 +02:00
Chocobozzz
1600235a2f
Merge remote-tracking branch 'origin/pr/1785' into develop 2019-05-16 08:58:39 +02:00
Chocobozzz
d183ee9bda
Don't use parallel tests with test suite 1 and 3 2019-05-15 17:17:14 +02:00
Chocobozzz
f88392cf68
Decrease max parallel tests for travis 2019-05-15 15:37:31 +02:00
Chocobozzz
48f07b4a40
All API tests in parallel 2019-05-15 15:14:21 +02:00
Chocobozzz
7243f84db0
Redundancy and search tests in parallel too 2019-05-14 15:37:43 +02:00
Chocobozzz
da3a3ab682
Try parallel check params tests 2019-05-14 15:37:42 +02:00
Chocobozzz
a18f275d30
Fix thumbnail when listing my videos 2019-05-13 09:45:36 +02:00
Felix Ableitner
7ed2c1a46f fixed formatting, added test case 2019-05-04 13:06:43 +02:00
Chocobozzz
c0e71e849a
Fix user notifications tests 2019-04-25 14:23:15 +02:00
Chocobozzz
8519cc9234
Fix overview endpoint 2019-04-24 17:29:19 +02:00
Chocobozzz
7c3b79768b
Use test wrapper exit function 2019-04-24 16:26:25 +02:00
Chocobozzz
42e1ec25ec
Try to fix travis 2019-04-24 16:26:24 +02:00
Chocobozzz
86ebdf8c46
Use parallel tests 2019-04-24 16:26:24 +02:00
Chocobozzz
210feb6cc4
Cleanup tests 2019-04-24 16:26:23 +02:00
Chocobozzz
94565d52bb
Shared utils -> extra-utils
Because they need dev dependencies
2019-04-24 16:25:52 +02:00
Chocobozzz
1eddc9a74f
Add user adminFlags 2019-04-15 14:39:52 +02:00
Chocobozzz
cda03765fe
Add ability to delete old remote views 2019-04-12 08:31:06 +02:00
Chocobozzz
8f0bc73d7d
Add ability to limit videos history size 2019-04-11 15:38:53 +02:00
Chocobozzz
76062d9f96
Try to improve server tests compilation speed 2019-04-11 14:29:41 +02:00
Chocobozzz
74dc3bca2b
Don't expose constants directly in initializers/ 2019-04-11 14:26:41 +02:00
Chocobozzz
5d79474cc6
Add debug component to help admins to fix IP issues 2019-04-11 10:58:09 +02:00
Chocobozzz
fd8710b897
Add logs endpoint 2019-04-10 16:38:32 +02:00
Chocobozzz
31b6ddf866
Add ability to disable tracker 2019-04-10 09:23:18 +02:00
Chocobozzz
22834691ab
Add check params account ratings tests 2019-04-09 11:24:15 +02:00
Yohan Boniface
c100a6142e Add /accounts/:username/ratings endpoint (#1756)
* Add /users/me/videos/ratings endpoint

* Move ratings endpoint from users to accounts

* /accounts/:name/ratings: add support for rating= and sort=

* Restrict ratings list to owner

* Wording and better way to ensure current account
2019-04-09 11:02:02 +02:00
Chocobozzz
883993c81e
Add notification on new instance follower (server side) 2019-04-08 17:30:48 +02:00
Chocobozzz
14893eb71c
Add ability to manually approves instance followers in REST API 2019-04-08 15:18:04 +02:00
Chocobozzz
5b9c965d5a
Add ability to forbid followers 2019-04-08 14:06:23 +02:00
Chocobozzz
0e9c48c2ed
Add ability to remove an instance follower in API 2019-04-08 11:52:43 +02:00
Chocobozzz
5893593982
Fix notification tests 2019-04-03 10:26:03 +02:00
Josh Morel
7ccddd7b52 add quarantine videos feature (#1637)
* add quarantine videos feature

* increase Notification settings test timeout

to 20000ms. was completing 7000 locally but timing out
after 10000 on travis

* fix quarantine video test issues

-propagate misspelling
-remove skip from server/tests/client.ts

* WIP use blacklist for moderator video approval

instead of video.quarantine boolean

* finish auto-blacklist feature
2019-04-02 11:26:47 +02:00
Chocobozzz
2ba9287131
Cleanup invalid rates/comments/shares 2019-03-19 16:23:02 +01:00
Chocobozzz
9f79ade627
Refresh playlists 2019-03-19 14:13:53 +01:00
Chocobozzz
f4800714f9
Cleanup tmp directory at startup 2019-03-19 10:53:53 +01:00
Chocobozzz
9a18a62520 Handle theater mode for playlists 2019-03-18 11:17:59 +01:00
Chocobozzz
397d78fb3e Fix unit tests 2019-03-18 11:17:59 +01:00
Chocobozzz
c5e4e36d2a Forbid public playlists not assigned to a channel 2019-03-18 11:17:59 +01:00
Chocobozzz
2a10aab3d7 Add playlist updatedAt tests 2019-03-18 11:17:59 +01:00
Chocobozzz
0b16f5f220 Add videos playlist exist tests 2019-03-18 11:17:59 +01:00
Chocobozzz
d4c9f45b31 Add server migrations 2019-03-18 11:17:59 +01:00
Chocobozzz
09979f8959 Refactor video playlist middlewares 2019-03-18 11:17:59 +01:00
Chocobozzz
df0b219d36 Add playlist rest tests 2019-03-18 11:17:59 +01:00
Chocobozzz
07b1a18aa6 Add playlist check param tests 2019-03-18 11:17:59 +01:00
Chocobozzz
418d092afa Playlist server API 2019-03-18 11:17:59 +01:00
Chocobozzz
c8000975d3
Add NSFW info in about page 2019-02-21 15:51:28 +01:00
Chocobozzz
9b39106d57
findById -> findByPk 2019-02-21 14:40:10 +01:00
Chocobozzz
f8802489bb
Add isNSFW instance configuration key 2019-02-20 15:36:43 +01:00
Josh Morel
576ad67aac check email enabled for requiresEmailVer config 2019-02-18 17:21:41 +01:00
Chocobozzz
17036be5bc
Try to fix travis tests 2019-02-15 14:04:34 +01:00
Chocobozzz
4759fedc61
Fix from header in contact form 2019-02-15 09:43:38 +01:00
Chocobozzz
1f6d57e354
Fix mention notification with a remote account 2019-02-15 09:43:37 +01:00
Chocobozzz
c74c9be934
Refractor published date on video import 2019-02-12 11:47:23 +01:00
Andrés Maldonado
31d065cc50
Add search by original publication date 2019-02-12 11:14:37 +01:00
Chocobozzz
7519127b5c
Add originallyPublishedAt unit tests 2019-02-11 15:16:39 +01:00
Chocobozzz
88108880bb
Merge branch 'develop' into pr/1217 2019-02-11 11:52:34 +01:00
Chocobozzz
53a94c7cfa
Add federation tests on download enabled 2019-02-11 11:48:56 +01:00
Chocobozzz
e79d0ba56c
Fix reverse proxy test 2019-02-11 11:01:50 +01:00
Chocobozzz
b426edd485
Cleanup reset user password by admin
And add some tests
2019-02-11 10:37:27 +01:00
Chocobozzz
4c280004ce Use a single file instead of segments for HLS 2019-02-11 09:13:02 +01:00
Chocobozzz
0920929696 Add hls support on server 2019-02-11 09:13:02 +01:00
Josh Morel
6c32d30212 remove .only from notifications tests 2019-02-07 14:49:28 +01:00
Josh Morel
f7effe8dc7 don't notify prior to scheduled update
also increase timeouts on user-notification test
2019-02-07 14:49:28 +01:00
Josh Morel
926cd3df33 fix typo in test accounts api validators 2019-01-28 11:49:30 +01:00
Chocobozzz
848f499def
Prepare Dislike/Flag/View fixes
For now we Create these activities, but we should just send them
directly.

This fix handles correctly direct Dislikes/Flags/Views, we'll implement
the sending correctly these activities in the next peertube version
2019-01-15 14:45:09 +01:00
Chocobozzz
44b9c0ba31
Add totalLocalVideoFilesSize in stats 2019-01-15 09:45:54 +01:00
Chocobozzz
1506307f2f
Increase abuse length to 3000
And correctly handle new lines
2019-01-14 16:48:38 +01:00
Chocobozzz
5abb9fbbd1
Add ability to unfederate a local video (on blacklist) 2019-01-10 15:39:51 +01:00
Chocobozzz
26a008fe8d
Update translations 2019-01-10 11:51:25 +01:00
Chocobozzz
a4101923e6
Implement contact form on server side 2019-01-10 11:32:37 +01:00
Chocobozzz
89ada4e26c Fix socket.io websocket connection 2019-01-09 11:15:15 +01:00
Chocobozzz
2f1548fda3 Add notifications in the client 2019-01-09 11:15:15 +01:00
Chocobozzz
f7cc67b455 Add new follow, mention and user registered notifs 2019-01-09 11:15:15 +01:00
Chocobozzz
dc13348070 Add import finished and video published notifs 2019-01-09 11:15:15 +01:00
Chocobozzz
e8d246d526 Add notification settings migration 2019-01-09 11:15:15 +01:00
Chocobozzz
cef534ed53 Add user notification base code 2019-01-09 11:15:15 +01:00
Chocobozzz
8b9a525a18
Add history on server side
Add ability to disable, clear and list user videos history
2018-12-18 11:35:50 +01:00
Josh Morel
af37210c0b throw error if MailDev doesn't run
also allow calling in multiple file
2018-12-17 10:59:07 +01:00
Chocobozzz
9f7a195363
Keep old channel/user name constraints
In order to avoid compatibility issues
2018-12-13 16:26:47 +01:00
Chocobozzz
14e2014acc Support additional video extensions 2018-12-11 15:11:09 +01:00
Chocobozzz
8923187455
Add test regarding tmp directory 2018-12-11 09:18:02 +01:00
Chocobozzz
2a8c5d0af1
Merge branch 'move-utils-to-shared' of https://github.com/buoyantair/PeerTube into buoyantair-move-utils-to-shared 2018-12-07 16:25:29 +01:00
BRAINS YUM
d0ce42c1c1 username/display_name/video_channel_name min length 1 and max length 50 (#1265)
* make username, display_name and video_channel_name min length 1 and max length 50; (fixes #1263);
    ! still some bug on the frontend complains but if you remove the disabled property it creates the account just fine;
allow for usernames to start with a number;
fix test, since username can be 1 char now make test check empty;
fix test, Should fail with a too long username;
fix test, Should fail with a too small username;
fix regular expression for username and videoChannel;
change username, videoChannel to be lowercase and fix message;

* change 1 characters to 1 character
2018-12-07 14:54:33 +01:00
Chocobozzz
f3e4d59408
Fix AP tests 2018-12-07 14:23:05 +01:00
Chocobozzz
b9fffa297f
Create redundancy endpoint 2018-12-04 17:08:55 +01:00
Chocobozzz
1a8dd4da77
Fix AP redirection 2018-11-30 15:06:36 +01:00
Josh Morel
fc2ec87a8c enable email verification by admin (#1348)
* enable email verification by admin

* rename/label to set email as verified

to be more explicit that admin is not sending
another email to confirm

* add update user emailVerified check-params test

* make user.model emailVerified property required
2018-11-21 08:48:29 +01:00
Chocobozzz
04b8c3fba6
Delete invalid or deleted remote videos 2018-11-20 10:44:48 +01:00
buoyantair
35adc403b7 Fix dependency issues 2018-11-20 12:33:52 +05:30
buoyantair
bc22d60899 Merge branch 'develop' of https://github.com/Chocobozzz/PeerTube into move-utils-to-shared 2018-11-20 12:28:13 +05:30
Chocobozzz
d175a6f7ab
Cleanup tests imports 2018-11-19 17:08:18 +01:00
buoyantair
b9f234371b Merge branch 'develop' of https://github.com/Chocobozzz/PeerTube into move-utils-to-shared 2018-11-18 21:55:52 +05:30
Chocobozzz
58d515e32f
Fix images size when downloading them 2018-11-16 16:48:17 +01:00
Chocobozzz
8d4273463f
Check follow constraints when getting a video 2018-11-16 15:49:16 +01:00
Chocobozzz
8d1fa36ad2
Do not host remote AP objects 2018-11-16 11:18:13 +01:00
buoyantair
92e07c3b5d Fix dependency errors between modules 2018-11-16 02:51:26 +05:30
buoyantair
ae28cdf327 Merge from upstream 2018-11-16 02:37:16 +05:30
Chocobozzz
8cf9987334
Fix video channel videos url when scrolling 2018-11-15 17:13:27 +01:00
Chocobozzz
6cb3482ceb
Remove wrong redundancy test 2018-11-15 11:20:23 +01:00
Chocobozzz
742ddee1f1
Fix server redundancy tests 2018-11-15 10:15:34 +01:00
Chocobozzz
a130f33c9c
Add AP fetch tests 2018-11-14 16:32:28 +01:00
Chocobozzz
5c6d985fae
Check activities host 2018-11-14 16:32:27 +01:00
Chocobozzz
df66d81583
Add compatibility with other Linked Signature algorithms 2018-11-14 16:32:27 +01:00
Rigel Kent
b83b8dd5ae add cli option to run without client 2018-11-14 15:59:56 +01:00
buoyantair
9639bd1757 Move utils to /shared
Move utils used by /server/tools/* & /server/tests/**/* into
/shared folder.

Issue: #1336
2018-10-29 22:18:31 +05:30
BRAINS YUM
d23e6a1c97 Feature/description support fields length 1000 (#1267)
* fix migrations to not use config constant values as it can introduce bugs later when they change; (fixes #1259)
remove constant fields imports from migrations

* add migrations to update description and support fields to 1000 (fixes #1258)

* fix client/server account and video_channel description/support fields to be max len 1000 (fixes #1258);
fix test Should fail with a too long description;
fix test Should fail with a long description;
fix test Should fail with a long description;
Remove USER.SUPPORT from constants since that field no longer exists;
null not false, in migrations/0280-description-support.ts;
video support field 1000, oops;

* rename migration 0280-description-support.ts -> 0285-description-support.ts;
update video support maxlength text
2018-10-19 08:54:01 +02:00
Chocobozzz
74cd011b6c
Fix optimize old videos script 2018-10-18 16:54:26 +02:00
Chocobozzz
cdf4cb9eaf
Fix transcoding 2018-10-18 10:44:16 +02:00
Chocobozzz
26370ce469 Move redundancy in its own travis container 2018-10-16 16:41:36 +02:00
Chocobozzz
fd28a0fc88 Fix redundancy test 2018-10-16 16:41:36 +02:00
Chocobozzz
65b21c961c Add ability to mute a user/instance by server in client 2018-10-16 16:41:36 +02:00
Chocobozzz
b44164bb56 Add ability to mute a user/instance by server in server api 2018-10-16 16:41:36 +02:00
Chocobozzz
af5767ffae Add user/instance block by users in the client 2018-10-16 16:41:36 +02:00
Chocobozzz
7ad9b9846c Add ability for users to block an account/instance on server side 2018-10-16 16:41:36 +02:00
Adnane Belmadiaf
6f2ae7a1aa rename News category into News & Politics (#1261) 2018-10-14 19:43:17 +02:00
Chocobozzz
1cd3facc3d
Add ability to list all local videos
Including private/unlisted for moderators/admins
2018-10-10 11:46:50 +02:00
Chocobozzz
b014b6b9c7
Add ability to search on followers/following 2018-10-10 09:43:53 +02:00
Chocobozzz
c1c86c1599
Try to cache video_high_bitrate_1080p in travis 2018-10-08 17:47:19 +02:00
Felix Ableitner
edb4ffc7e0 Set bitrate limits for transcoding (fixes #638) (#1135)
* Set bitrate limits for transcoding (fixes #638)

* added optimization script and test, changed stuff

* fix test, improve docs

* re-add optimize-old-videos script

* added documentation

* Don't optimize videos without valid UUID, or redundancy videos

* move getUUIDFromFilename

* fix tests?

* update torrent and file size, some more fixes/improvements

* use higher bitrate for high fps video, adjust bitrates

* add test video

* don't throw error if resolution is undefined

* generate test fixture on the fly

* use random noise video for bitrate test, add promise

* shorten test video to avoid timeout

* use existing function to optimize video

* various fixes

* increase test timeout

* limit test fixture size, add link

* test fixes

* add await

* more test fixes, add -b:v parameter

* replace ffmpeg wiki link

* fix ffmpeg params

* fix unit test

* add test fixture to .gitgnore

* add video transcoding fps model

* add missing file
2018-10-08 16:26:04 +02:00
Chocobozzz
24b9417cec
Add users search filter 2018-10-08 15:55:32 +02:00
Lucas Declercq
7f2cfe3a79 Rename downloadingEnabled property to downloadEnabled 2018-10-08 14:45:22 +02:00
Lucas Declercq
156c50af30 Add downloadingEnabled property to video model 2018-10-06 19:17:39 +02:00
Chocobozzz
79bd2632d6
Add user moderation in the account page 2018-10-05 17:02:10 +02:00
Chocobozzz
6e46de095d
Add user history and resume videos 2018-10-05 11:22:38 +02:00
Chocobozzz
25378bc866
Delete correctly redundancy files 2018-10-03 16:43:57 +02:00
Chocobozzz
278711b595
Try to fix travis redundancy tests 2018-10-02 13:09:57 +02:00
Chocobozzz
792e5b8e5b
Try to improve redundancy tests 2018-10-02 09:04:19 +02:00
Chocobozzz
601527d795
Check video channel name is unique on our instance 2018-10-01 15:20:14 +02:00
Chocobozzz
161b061d4e
Remove duplicated videos on unfollow/delete redundancy 2018-09-28 10:07:05 +02:00
Chocobozzz
a890d1e0d3
Check current password on server side 2018-09-26 16:28:27 +02:00
Chocobozzz
3827c3b348
Fix quota translations 2018-09-26 14:50:39 +02:00
Chocobozzz
d82d8ad60c
Fix redundancy tests 2018-09-26 10:16:12 +02:00
Chocobozzz
ebdb612458
Fix redundancy totalVideos stats 2018-09-25 17:49:48 +02:00
Chocobozzz
e5565833f6
Improve redundancy: add 'min_lifetime' configuration 2018-09-24 13:38:39 +02:00
Chocobozzz
f41d6aacdf
Fix jobs tests 2018-09-19 17:42:16 +02:00
Chocobozzz
993cef4b6e
Refractor audit user identifier 2018-09-19 17:02:27 +02:00
Chocobozzz
a2377d15ee
Refractor activities sending 2018-09-14 16:51:35 +02:00
Chocobozzz
4b5384f6e7
Add redundancy stats 2018-09-14 14:57:59 +02:00
Chocobozzz
3f6b6a565d
Add recently added redundancy strategy 2018-09-14 11:05:38 +02:00
Chocobozzz
b36f41ca09
Add trending videos strategy 2018-09-14 09:57:21 +02:00
Chocobozzz
c48e82b5e0 Basic video redundancy implementation 2018-09-13 14:05:49 +02:00
Chocobozzz
eb87f9a4a9
Fix nsfw filter 2018-09-04 11:19:19 +02:00
Chocobozzz
5cf84858d4
Add federation to ownership change 2018-09-04 10:49:53 +02:00
Chocobozzz
0b74c74abe
Add trending sort tests 2018-09-04 08:58:34 +02:00
Gaëtan Rizio
74d6346935 Users can change ownership of their video [#510] (#888)
* [#510] Create a new route to get the list of user names

To be able to transfer ownership to a user,
we need to be able to select him from the list of users.

Because the list could be too big, we add a autocomplete feature.

This commit does the following:

* Add a API endpoint to get a list of user names by searching its name

* [#510] The user can choose the next owner of the video

To be able to transfer ownership to a user,
we need the owner to be able to select the user.

The server can autocomplete the name of the user to give the ownership.
We add a dialog for the user to actually select it.

This commit does the following:

* Create a modal for the owner to select the next one
* Opens this modal with a button into the menu *more*
* Make the dependency injection

* [#510] When the user choose the next owner, create a request in database

For the change of ownership to happen, we need to store the temporary requests.
When the user make the request, save it to database.

This commit does the following:

* Create the model to persist change ownership requests
* Add an API to manage ownership operations
* Add a route to persist an ownership request

* [#510] A user can fetch its ownership requests sent to him

To be able to accept or refuse a change of ownership,
the user must be able to fetch them.

This commit does the following:

* Add an API to list ownership for a user
* Add the query to database model

* [#510] A user can validate an ownership requests sent to him - server

The user can accept or refuse any ownership request that was sent to him.
This commit focus only on the server part.

This commit does the following:

* Add an API for the user to accept or refuse a video ownership
* Add validators to ensure security access
* Add a query to load a specific video change ownership request

* [#510] A user can validate an ownership requests sent to him - web

The user can accept or refuse any ownership request that was sent to him.
This commit focus only on the web part.

This commit does the following:

* Add a page to list user ownership changes
* Add actions to accept or refuse them
* When accepting, show a modal requiring the channel to send the video

* Correct lint - to squash

* [#510] PR reviews - to squash

This commit does the following:

* Search parameter for user autocompletion is required from middleware directly

* [#510] PR reviews - to squash with creation in database commit

This commit does the following:

* Add the status attribute in model
* Set this attribute on instance creation
* Use AccountModel method `loadLocalByName`

* [#510] PR reviews - to squash with fetch ownership

This commit does the following:

* Add the scope `FULL` for database queries with includes
* Add classic pagination middlewares

* [#510] PR reviews - to squash with ownership validation - server

This commit does the following:

* Add a middleware to validate whether a user can validate an ownership
* Change the ownership status instead of deleting the row

* [#510] PR reviews - to squash with ownership validation - client

This commit does the following:

* Correct indentation of html files with two-spaces indentation
* Use event emitter instead of function for accept event
* Update the sort of ownership change table for a decreasing order by creation date
* Add the status in ownership change table
* Use classic method syntax

* code style - to squash

* Add new user right - to squash

* Move the change to my-account instead of video-watch - to squash

As requested in pull-request, move the action to change ownership into my videos page.

The rest of the logic was not really changed.

This commit does the following:

- Move the modal into my video page
- Create the generic component `button` to keep some styles and logic

* [#510] Add tests for the new feature

To avoid regression, we add tests for all api of ownership change.

This commit does the following:

- Create an end-to-end test for ownership change
- Divide it to one test per request

* [#510] Do not send twice the same request to avoid spam

We can send several time the same request to change ownership.
However, it will spam the user.
To avoid this, we do not save a request already existing in database.

This commit does the following:

- Check whether the request exist in database
- Add tests to verify this new condition

* [#510] Change icons

Change icons so they remains logic with the rest of the application.

This commit does the following:

- Add svg for missing icons
- Add icons in `my-button` component
- Use these new icons

* [#510] Add control about the user quota

The user should be able to accept a new video only if his quota allows it.

This commit does the following:

- Update the middleware to control the quota
- Add tests verifying the control

* Correct merge

- Use new modal system
- Move button to new directory `buttons`

* PR reviews - to squash
2018-09-04 08:57:13 +02:00
Chocobozzz
9a629c6efb
Trending by interval 2018-08-31 17:22:01 +02:00
Chocobozzz
2d3741d6d9 Videos overview page: first version 2018-08-31 09:19:58 +02:00
Josh Morel
d9eaee3939 add user account email verificiation (#977)
* add user account email verificiation

includes server and client code to:

* enable verificationRequired via custom config
* send verification email with registration
* ask for verification email
* verify via email
* prevent login if not verified and required
* conditional client links to ask for new verification email

* allow login for verified=null

these are users created when verification not required
should still be able to login when verification is enabled

* refactor email verifcation pr

* change naming from verified to emailVerified
* change naming from askVerifyEmail to askSendVerifyEmail
* undo unrelated automatic prettier formatting on api/config
* use redirectService for home
* remove redundant success notification on email verified

* revert test.yaml smpt host
2018-08-31 09:18:19 +02:00
Chocobozzz
04291e1ba4
Fix job tests 2018-08-30 15:03:19 +02:00
Chocobozzz
6b6168606b
Bufferize videos views in redis 2018-08-30 15:03:18 +02:00
Chocobozzz
9ee92651f6
Fix tests 2018-08-28 11:32:03 +02:00
Felix Ableitner
bee0abffff Implement daily upload limit (#956)
* Implement daily upload limit (ref #652)

* remove duplicate code

* review fixes

* fix tests?

* whitespace fixes, finish leftover todo

* fix tests

* added some new tests

* use different config value for tests

* remove todo
2018-08-28 09:01:35 +02:00
Chocobozzz
687d638c2b Fetch outbox when searching an actor 2018-08-27 09:41:54 +02:00
Chocobozzz
f5b0af50c8 Search video channel handle/uri 2018-08-27 09:41:54 +02:00
Chocobozzz
f37dc0dd14 Add ability to search video channels 2018-08-27 09:41:54 +02:00
Chocobozzz
240085d005 Fix tests 2018-08-27 09:41:54 +02:00
Chocobozzz
83e6519ba4 Refractor comment creation from federation 2018-08-27 09:41:54 +02:00
Chocobozzz
1297eb5db6 Add refresh video on search 2018-08-27 09:41:54 +02:00
Chocobozzz
f6eebcb336 Add ability to search a video with an URL 2018-08-27 09:41:54 +02:00
Chocobozzz
99492dbc0d Add get subscription endpoint 2018-08-27 09:41:54 +02:00
Chocobozzz
8a19bee1a1 Add ability to set a name to a channel 2018-08-27 09:41:54 +02:00
Chocobozzz
06a05d5f47 Add subscriptions endpoints to REST API 2018-08-27 09:41:54 +02:00
Chocobozzz
a76138ff56
Add quota used in users list 2018-08-14 18:01:23 +02:00
Chocobozzz
eed24d26db Don't set a bitrate on unknown audio input 2018-08-14 15:53:06 +02:00
Chocobozzz
59c76ffa8f
Flat shared module directory 2018-08-14 15:00:01 +02:00
Chocobozzz
13b6dc1f34
Increase video import timeout 2018-08-14 11:40:14 +02:00
Chocobozzz
cc43831a90
Filter tracker based on infohash 2018-08-14 11:00:03 +02:00
Chocobozzz
e5e7f7fe99
Add tests when getting a blacklisted video 2018-08-14 09:27:19 +02:00
Chocobozzz
26b7305a23
Add blacklist reason field 2018-08-14 09:27:18 +02:00
Chocobozzz
288178bf02
Try to fix travis tests 2018-08-10 17:49:12 +02:00
Chocobozzz
268eebed92
Add state and moderationComment for abuses on server side 2018-08-10 16:54:01 +02:00
Chocobozzz
eacb25c436
Add reason when banning a user 2018-08-08 17:44:22 +02:00
Chocobozzz
e69219184b
Implement user blocking on server side 2018-08-08 15:22:58 +02:00
Chocobozzz
92b9d60c00
Add ability to delete our account 2018-08-08 10:55:27 +02:00
Chocobozzz
a031ab0b9b
Increase test timeout for imports 2018-08-08 10:13:05 +02:00
Chocobozzz
3e17515e29 Add torrent tests 2018-08-08 09:30:31 +02:00
Chocobozzz
187501f8b8 Add check param tests regarding video imports 2018-08-08 09:30:31 +02:00
Chocobozzz
a84b8fa5cf Add import.video.torrent configuration 2018-08-08 09:30:31 +02:00
Chocobozzz
3d52b300ea
Merge branch 'release/beta-10' into develop 2018-08-06 12:11:08 +02:00
Chocobozzz
2769e297ca
Fix caption upload on Mac OS 2018-08-06 11:45:24 +02:00
Chocobozzz
b2977eecb8 Fix fps federation 2018-08-06 11:19:16 +02:00
Chocobozzz
590fb50690 Add tests regarding video import 2018-08-06 11:19:16 +02:00
Chocobozzz
5d08a6a74e Add import http enabled configuration 2018-08-06 11:19:16 +02:00
Rigel Kent
7160878c4a adding tests for audio conversions 2018-08-01 10:57:13 +02:00
Rigel Kent
19ca8ca939 fixing tests to deal with new transcoding parameters 2018-08-01 10:57:13 +02:00
Rigel Kent
4176e227cb Fixing #626 with ffmpeg's low default audio bitrate 2018-08-01 10:57:13 +02:00
Chocobozzz
cf7a61b5a2
Cleanup req files on bad request 2018-07-31 15:09:34 +02:00
Chocobozzz
cc6373e6d6
Fix handle down test 2018-07-31 12:21:04 +02:00
Chocobozzz
d411245096 Add ability to only filter in the search endpoint 2018-07-24 14:04:05 +02:00
Chocobozzz
5bcfd02974 Fix travis tests 2018-07-24 14:04:05 +02:00
Chocobozzz
0b18f4aa80 Add advanced search in client 2018-07-24 14:04:05 +02:00
Chocobozzz
d525fc399a Add videos list filters 2018-07-24 14:04:05 +02:00
Chocobozzz
e032aec9b9
Render CSS/title/description tags on server side 2018-07-18 10:00:37 +02:00
Chocobozzz
f4001cf408
Handle .srt subtitles 2018-07-16 14:31:40 +02:00
Chocobozzz
40e87e9ecc Implement captions/subtitles 2018-07-16 11:50:08 +02:00
Chocobozzz
94831479f5 Migrate to bull 2018-07-11 14:00:17 +02:00
Chocobozzz
3a6f351b25
Handle higher FPS for high resolution (test) 2018-06-29 17:10:54 +02:00
Chocobozzz
52d9f792b3
Client: Add ability to update video channel avatar 2018-06-29 14:34:04 +02:00
Chocobozzz
4bbfc6c606
API: Add ability to update video channel avatar 2018-06-29 11:29:23 +02:00
Chocobozzz
adc236fee3
Increase test timeout for travis 2018-06-27 10:07:41 +02:00
Chocobozzz
0c237b19fd
Fix images size limit 2018-06-22 15:42:55 +02:00
Chocobozzz
2ef6a0635c
Do not create a user with the same username than another actor name 2018-06-21 11:54:22 +02:00
Chocobozzz
bbe0f0645c
Add ability to schedule video publication 2018-06-15 18:20:56 +02:00
Chocobozzz
2baea0c77c
Add ability for uploaders to schedule video update 2018-06-14 18:06:56 +02:00
Chocobozzz
9a4a9b6c4e
Fix offset/limit on some SQL queries 🤦 2018-06-13 18:07:35 +02:00
Chocobozzz
3cd0734fd9
Improve tests when waiting pending jobs 2018-06-13 10:22:53 +02:00
Chocobozzz
2186386cca
Add concept of video state, and add ability to wait transcoding before
publishing a video
2018-06-12 20:37:51 +02:00
Chocobozzz
fe3a55b071
Add video comments RSS 2018-06-08 20:34:37 +02:00
Chocobozzz
99d103019c
Move fixtures in tests/ 2018-06-07 09:57:35 +02:00
Florent Fayolle
0138af9237 Add create-import-video-file-job command 2018-06-07 08:57:48 +02:00
Chocobozzz
53a613171e
Fix publishedAt value after following a new instance 2018-05-28 18:50:44 +02:00
Chocobozzz
77a87fec6c
Update changelog 2018-05-28 17:28:53 +02:00
Chocobozzz
ad9e39fb81
Only use account name in routes 2018-05-25 10:41:07 +02:00
Chocobozzz
0b33c52060
Improve e2e tests 2018-05-22 09:17:21 +02:00
Chocobozzz
6200d8d917
Fix video channel update with an admin account 2018-05-17 10:55:49 +02:00
Chocobozzz
7fb39378d8
Add check channel update test in video update 2018-05-11 16:17:49 +02:00
Chocobozzz
0f320037e6
Add ability to update a video channel 2018-05-11 15:25:51 +02:00
Chocobozzz
8be1afa12b
Add ability to embed a video in Twitter
The instance should be whitelisted first
2018-05-11 08:48:20 +02:00
Chocobozzz
9419b01352
Fix tests 2018-05-09 13:49:50 +02:00
Chocobozzz
360329cc02
Account/channel descriptions are not required anymore 2018-05-09 11:41:18 +02:00
Rigel Kent
966eb05313 feature: initial syndication feeds tests for instance-wide feeds 2018-04-26 16:30:27 +02:00
Chocobozzz
08c1efbe32
Add video channel management 2018-04-26 16:18:01 +02:00
Chocobozzz
ed56ad1193
Add ability to update the user display name/description 2018-04-26 10:03:40 +02:00
Chocobozzz
170726f523
Implement video channel views 2018-04-25 16:56:13 +02:00
Chocobozzz
cc918ac3f4
Update video-channel routes (again)
Use /video-channels now, it's more simple for clients
2018-04-25 16:16:21 +02:00
Chocobozzz
6b738c7a31
Video channel API routes refractor 2018-04-25 13:50:48 +02:00
Chocobozzz
48dce1c90d
Update video channel routes 2018-04-24 17:12:57 +02:00
Chocobozzz
9d3ef9fe05
Use ISO 639 for languages 2018-04-23 14:39:52 +02:00
Chocobozzz
41f657c570
Add help concerning NSFW videos in upload 2018-04-19 11:47:02 +02:00
Chocobozzz
0883b3245b
Add ability to choose what policy we have for NSFW videos
There is a global instance setting and a per user setting
2018-04-19 11:01:34 +02:00
Chocobozzz
94ff4c2335
Add auth documentation 2018-04-16 17:27:00 +02:00
Chocobozzz
c49db162ee
Add tests for publishedAt 2018-04-04 10:21:36 +02:00
Chocobozzz
09becad8e8
Add reverse proxy test in travis 2018-03-29 11:39:53 +02:00
Chocobozzz
490b595a01
Prevent brute force login attack 2018-03-29 11:03:30 +02:00
Chocobozzz
73c0809326
Fix delete comment federation 2018-03-27 11:11:15 +02:00
Chocobozzz
53eb90c0ab
Fix check comments params unit tests 2018-03-26 09:48:20 +02:00
Chocobozzz
5d00a3d7aa
Update the api documentation 2018-03-19 14:20:04 +01:00
Chocobozzz
2e3a0215d0
Add short description in config 2018-03-15 14:34:47 +01:00
Chocobozzz
066e94c538
Add "local" videos in menu 2018-03-13 10:24:28 +01:00
Chocobozzz
19a3b914f1
Change video abuse API response 2018-03-12 11:44:28 +01:00
Chocobozzz
b64c950a1c
Update videos api list for account 2018-03-12 11:44:28 +01:00
Chocobozzz
901637bb87
Add ability to change the homepage 2018-03-01 13:57:29 +01:00
Chocobozzz
09cababd79
Add stats route 2018-02-28 18:04:55 +01:00
Chocobozzz
73c695919c
Add 30 fps limit in transcoding 2018-02-26 11:08:38 +01:00
Chocobozzz
b5c0e95544
Avoids easy cheating on vidoe views 2018-02-23 16:44:37 +01:00
Chocobozzz
00b5556c18
Add ability to add custom css/javascript 2018-02-22 10:22:53 +01:00
Chocobozzz
6221f311de
Add ability to update another user video 2018-02-22 09:03:45 +01:00
Chocobozzz
2422c46b27
Implement support field in video and video channel 2018-02-15 15:29:07 +01:00
Chocobozzz
7b0956ec4f
Fix tests 2018-02-14 18:33:06 +01:00
Chocobozzz
ac81d1a06d
Add ability to set video thumbnail/preview 2018-02-14 16:03:09 +01:00
Chocobozzz
c4377f4b5b
Fix config test 2018-02-09 13:36:07 +01:00
Chocobozzz
ba75d26859
Send an email on video abuse report 2018-02-01 11:08:29 +01:00
Chocobozzz
36f9424ff1
Add about page 2018-01-31 17:51:04 +01:00
Chocobozzz
66b16cafb3
Add new name/terms/description config options 2018-01-31 16:42:40 +01:00
Chocobozzz
f076daa76a
Add tests for emails 2018-01-30 15:16:24 +01:00
Chocobozzz
ba12e8b3a6
Add ability to login with email 2018-01-29 16:09:50 +01:00
Chocobozzz
94a5ff8a4a
Move job queue to redis
We'll use it as cache in the future.

/!\ You'll loose your old jobs (pending jobs too) so upgrade only when
you don't have pending job anymore.
2018-01-25 18:41:17 +01:00
luzpaz
2bb0f9d501 Misc. typos (#245)
Found via `codespell -q 3`
2018-01-25 08:12:42 +01:00
Chocobozzz
f8b8c36b2a
Destroy user token when changing its role 2018-01-23 09:49:57 +01:00
Chocobozzz
23e27dd535
Add ability to configure log level 2018-01-19 13:58:13 +01:00
Chocobozzz
e212f88714
Increase tests timeout 2018-01-18 18:10:45 +01:00
Chocobozzz
2c897999fe
Optimize SQL query that fetch actor outbox 2018-01-18 16:43:26 +01:00
Chocobozzz
54e740594b
Avoid too many requests and fetching outbox 2018-01-18 15:42:20 +01:00
Chocobozzz
f05a1c30c1
Don't show videos of remote instance after unfollow 2018-01-18 15:42:20 +01:00
Chocobozzz
fd206f0b2d
Add ability to update some configuration keys 2018-01-17 10:41:27 +01:00