Commit Graph

955 Commits (8569a870e4cd662026dbf3f439c0bb460262b2b1)

Author SHA1 Message Date
Chocobozzz ad9e39fb81
Only use account name in routes 2018-05-25 10:41:07 +02:00
Chocobozzz 06be7ed0b2
Reload my videos after delete 2018-05-25 08:38:59 +02:00
Chocobozzz a00a8f09f9
Don't render opengraph tags of private videos 2018-05-24 15:34:16 +02:00
Chocobozzz d14a9532a1
Handle account name in client url
More consistent with AP urls
2018-05-24 15:30:28 +02:00
Chocobozzz a4f99a766b
Add owner in video channel page 2018-05-23 11:38:18 +02:00
Chocobozzz b40f057594
Handle concurrent requests in cache middleware 2018-05-23 10:03:26 +02:00
Chocobozzz e1a540b5fa
Fix insane SQL request when loading all video attributes 2018-05-23 09:07:32 +02:00
Rigel Kent ff2c1fe813 feature: IP filtering on signup page
disable registration form on IP not in range
checking the CIDR list before filtering with it
placing the cidr filters as an attribute object in the config
2018-05-22 19:44:34 +02:00
Chocobozzz 0b33c52060
Improve e2e tests 2018-05-22 09:17:21 +02:00
Rigel Kent 30c82f0d2e feature: db selection in redis
resolves #579
2018-05-21 17:49:56 +02:00
Chocobozzz 6200d8d917
Fix video channel update with an admin account 2018-05-17 10:55:49 +02:00
Chocobozzz 5fcbd89841
Fix typings 2018-05-16 11:06:33 +02:00
Rigel Kent ac235c37e2 robots.txt config and route 2018-05-16 10:50:55 +02:00
Chocobozzz 2efd32f697
Fix updating video tags to empty field 2018-05-16 09:42:56 +02:00
Chocobozzz 136cce4d67
Use publishedAt by default in videos sort 2018-05-15 08:47:47 +02:00
Rigel Kent 82ddca10b7 making the feed fulltext 2018-05-12 09:52:09 +02:00
Chocobozzz 7fb39378d8
Add check channel update test in video update 2018-05-11 16:17:49 +02:00
Chocobozzz 938d3fa0ff
Move normalize functions in helpers 2018-05-11 15:55:39 +02:00
Chocobozzz 5cf1350011
Improve AP validation for Notes 2018-05-11 15:41:54 +02:00
Chocobozzz 0f320037e6
Add ability to update a video channel 2018-05-11 15:25:51 +02:00
Chocobozzz 9675333dec
Decrease AP video cache 2018-05-11 15:25:51 +02:00
Chocobozzz fd4484f19e
Cache AP video route for 5 seconds 2018-05-11 15:24:17 +02:00
John Livingston 8a2db2e8cb linting 2018-05-11 15:23:50 +02:00
John Livingston 7eb5f8cd32 fix reject 2018-05-11 15:23:50 +02:00
John Livingston e2b9d0ca56 Standard code 2018-05-11 15:23:50 +02:00
John Livingston 066fc8ba71 import-videos: prompt for password 2018-05-11 15:23:50 +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 1d6e5dfc37
Improve video torrent AP object validator 2018-05-11 08:48:20 +02:00
Chocobozzz 9419b01352
Fix tests 2018-05-09 13:49:50 +02:00
Chocobozzz a10fc78bb0
Fix video channel description/support max length 2018-05-09 13:32:44 +02:00
Chocobozzz 360329cc02
Account/channel descriptions are not required anymore 2018-05-09 11:41:18 +02:00
Chocobozzz 71e3dfda4e
Add timeout and TTL to request jobs 2018-05-09 09:08:22 +02:00
Chocobozzz 7d8e778ad0
Fix video channel update/create on empty fields 2018-05-07 11:31:23 +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 e0ea4b1d55
Implement video channel feeds 2018-04-25 17:30:56 +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 03e12d7c49
Add account link in videos list 2018-04-25 14:32:19 +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 0626e7af82
Add account view 2018-04-24 15:13:19 +02:00
Chocobozzz 9309c3df8f
Update changelog 2018-04-23 15:44:00 +02:00
Chocobozzz 9d3ef9fe05
Use ISO 639 for languages 2018-04-23 14:39:52 +02:00
Chocobozzz 6cced8f915
Add resolution in torrent file name 2018-04-19 15:37:44 +02:00
Chocobozzz 81e504b34e
Better file name for torrent 2018-04-19 15:13:41 +02:00
Chocobozzz 2243730c8e
Add information concerning video privacy in my videos list 2018-04-19 14:52:10 +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 f55e5a7bf8
Process broadcast requests in parallel 2018-04-18 16:04:49 +02:00
Chocobozzz 5350fd8e5b
Move server follow in the job queue
It helps to track follow errors
2018-04-18 15:32:40 +02:00
Chocobozzz bf6e8e3e3d
Fix tests 2018-04-18 15:27:33 +02:00
Chocobozzz 66dc590764
Add ability to click on the account in watch page 2018-04-17 15:11:12 +02:00
Chocobozzz 4195cd2bc5
Add redis cache to feed route 2018-04-17 14:04:34 +02:00
Pierre-Alain TORET cff8b272b1 Support hostname binding in config
* Add basic support for hostname binding

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>

* Make production example a bit more secure

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>

* Make example config files compatible with hostname binding modification

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>

* Fix typo

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>

* Bind on 127.0.0.1 by default

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>

* Update Docker configuration with hostname binding

Signed-off-by: Pierre-Alain TORET <pierre-alain.toret@protonmail.com>
2018-04-17 11:14:32 +02:00
Chocobozzz 7b87d2d514
Handle sort in rss 2018-04-17 10:56:27 +02:00
Rigel Kent 244e76a552
feature: initial syndication feeds support
Provides rss 2.0, atom 1.0 and json 1.0 feeds for videos (instance and account-wide) on listings and video-watch views.

* still lacks redis caching
* still lacks lastBuildDate support
* still lacks channel-wide support
* still lacks semantic annotation (for licenses, NSFW warnings, etc.)
* still lacks love ( ˘ ³˘)

* RSS: has MRSS support for torrent lists!
* RSS: includes the first torrent in an enclosure
* JSON: lists all torrents in the 'attachments' object
* ATOM: lacking torrent listing support

Advances #23
Partial implementation for the accountId generation in the client, which will need a hotfix to add a way to get the proper account id.
2018-04-17 01:09:06 +02:00
Chocobozzz 94ff4c2335
Add auth documentation 2018-04-16 17:27:00 +02:00
Chocobozzz 37ddeba57f
Don't add a dot after the url in forgot password email 2018-04-15 09:29:53 +02:00
Chocobozzz ee28cdf1c4
Upgrade server dependencies 2018-04-06 14:39:19 +02:00
Chocobozzz a8462c8e3a
Automatic resolution according to user bandwidth V1 2018-04-05 16:15:51 +02:00
Chocobozzz 3d3441d6c7
Don't start application until all components were initialized 2018-04-04 11:04:14 +02:00
Chocobozzz 72de91cb10
Fix privacy argument in upload script 2018-04-04 10:47:02 +02:00
Chocobozzz c49db162ee
Add tests for publishedAt 2018-04-04 10:21:36 +02:00
Chocobozzz 20760d9160
Accept unlisted comments too 2018-04-04 09:59:31 +02:00
memorybox f97d299230 fix #456 catching errors in import-videos (#457) 2018-04-02 20:28:25 +02:00
Chocobozzz 79d28db3f9
Fix migration 200 2018-03-30 17:47:21 +02:00
Julien Le Bras 2922e048de Add publishedAt field for video model.
* New field added in the `video` table + migration script

* `publishedAt` updated to NOW when privacy changes from private to
  public/unlisted (default = NOW)

* Models updated to handle the new attribute

* Client interface updated to use `publishedAt` instead of `createdAt`
  except in My Account > My Videos view
2018-03-30 08:52:58 +02:00
Chocobozzz d8c2e37988
Upgrade changelog 2018-03-29 13:42:03 +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 e33e7fc89e
Fix views system behind a proxy 2018-03-28 14:51:50 +02:00
Chocobozzz 45cd28b679
Remove alpine image 2018-03-28 13:45:24 +02:00
Chocobozzz c73e83da28
Truncate correctly video descriptions 2018-03-28 11:00:02 +02:00
Olivier Jolly 320f8d7e01 Add privacy setting to upload.js cli (#422) 2018-03-27 16:15:40 +02:00
Chocobozzz be1fc4bc50
Fix custom server configuration numbers 2018-03-27 15:46:36 +02:00
Chocobozzz 3e0c9ff5d5
Add ability to search on domain and username too 2018-03-27 15:09:53 +02:00
Chocobozzz 4b8f09fa01
Fix content type response for ActivityPub 2018-03-27 14:29:22 +02:00
Chocobozzz e53f952eba
Improve SQL request for video AP request 2018-03-27 14:29:22 +02:00
Rigel Kent 1869c87535 show quota in stats, display quota on the about page, fixes #405 (#421)
move videoQuota under a user object, use byte PipeTransform
2018-03-27 13:42:57 +02:00
Chocobozzz fc27b17c6b
Put Person first in AP attributedTo 2018-03-27 13:40:30 +02:00
Chocobozzz 07197db4c5
Try to refractor activities sending
There is still a need for work on this part though
2018-03-27 13:33:56 +02:00
Chocobozzz 73c0809326
Fix delete comment federation 2018-03-27 11:11:15 +02:00
Rigel Kent 761fc1ddfe Add sign language to the index of languages (#420) 2018-03-27 11:06:18 +02:00
Chocobozzz d5b7d9110d
Fix error logging 2018-03-26 16:04:14 +02:00
Chocobozzz 27d56b5453
Fix videos import script 2018-03-26 14:20:33 +02:00
Rigel Kent 45b8a42ca1 truncating long video names in import-videos.js (fixes #392) (#415) 2018-03-26 14:07:45 +02:00
Rigel Kent 48e35415c7 per missing field error in upload.js (fixes #414) (#416) 2018-03-26 13:13:01 +02:00
Chocobozzz 53eb90c0ab
Fix check comments params unit tests 2018-03-26 09:48:20 +02:00
Okhin 5c5638a062 Removing unnecessary semicolons 2018-03-24 21:17:29 +01:00
Okhin f5b611f9ee Replacing the err being thrown by a gracefull exit.process(1) 2018-03-24 21:17:29 +01:00
Aurélien Bertron b32b782718 Limit comment length to 1 character, fixes #394 (#399) 2018-03-24 19:40:48 +01:00
Chocobozzz 9c673970f6
Add public to activitypub announces 2018-03-23 13:27:21 +01:00
Chocobozzz a465bf5f47
Fix error display on edit config in admin 2018-03-23 11:39:06 +01:00
Chocobozzz 3660d6c3c7
Don't search migration version in old Applications table anymore 2018-03-23 09:16:21 +01:00
Chocobozzz 8e8234abba
Improve logging when cannot fetch remote videos 2018-03-23 09:10:49 +01:00
Chocobozzz 6be84cbcea
Improve activity pub actors implementation 2018-03-22 18:40:56 +01:00
Chocobozzz 296c090563
Add activity route to video and video comment objects 2018-03-22 17:12:25 +01:00
Chocobozzz bebf2d89d3
Add option to disable starttls 2018-03-22 16:12:52 +01:00
Chocobozzz a38b297d90
Add /activity to activity create ids 2018-03-22 16:11:18 +01:00
Chocobozzz 376220e80e
Disable starttls for emails on localhost 2018-03-22 15:18:56 +01:00
Chocobozzz 05e67d6206
Add logging for emails 2018-03-22 11:47:26 +01:00
Chocobozzz bffbebbe6b
Fix issues with truncated description and utf characters 2018-03-21 15:00:58 +01:00
Chocobozzz a3cffab42d
Fix mentions in comments 2018-03-21 11:17:01 +01:00
Chocobozzz 747b29900d
Display ffmpeg output errors 2018-03-20 08:21:54 +01:00
Chocobozzz 552586eda6
Fix resolution order 2018-03-19 15:37:31 +01:00
Chocobozzz a797728009
Fix video_share_url duplicate key in transcoding job 2018-03-19 15:22:18 +01:00
Chocobozzz 5d00a3d7aa
Update the api documentation 2018-03-19 14:20:04 +01:00
Chocobozzz 09700934b9
BEARKING CHANGE: Update videos API response
before beta
2018-03-19 11:04:40 +01:00
Chocobozzz ae5a3dd664
Update videos response api 2018-03-19 10:32:51 +01:00
Chocobozzz f47776e265
Sanitize invalid actor description 2018-03-19 10:32:51 +01:00
Chocobozzz 2e3a0215d0
Add short description in config 2018-03-15 14:34:47 +01:00
Chocobozzz c39ea24b71
Upgrade server depencencies 2018-03-13 16:00:39 +01:00
Chocobozzz 5c328e6610
Move sort middleware utils in utils file 2018-03-13 11:28:37 +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
Cale edf7f40a10
Fix typo in "already exist" error message 2018-03-11 08:14:35 -07:00
Chocobozzz 0647f472bc
Fix logging timestamp 2018-03-08 18:16:15 +01:00
Chocobozzz b0ef17828c
Do not destroy the video if transcoding fails 2018-03-08 14:09:09 +01:00
Chocobozzz ad34cfc8ac
Add documentation for upload script 2018-03-05 09:53:16 +01:00
Chocobozzz f40411a62e
Fix import videos tool 2018-03-01 16:45:38 +01:00
Chocobozzz 901637bb87
Add ability to change the homepage 2018-03-01 13:57:29 +01:00
Chocobozzz a73c582e5b
Improve playback speed style 2018-03-01 13:02:09 +01:00
Chocobozzz 09cababd79
Add stats route 2018-02-28 18:04:55 +01:00
Chocobozzz 2ad429529c
Add indentation in json configuration file generated by the admin
interface
2018-02-28 09:55:00 +01:00
Chocobozzz acbffe9c0f
Add max video height on mobile 2018-02-28 09:39:08 +01:00
Chocobozzz 628d28e84b
Fix typings 2018-02-27 17:42:32 +01:00
Chocobozzz 509cd56aca
Add warning in production.yaml
To avoid confusion with the local-production.json file
2018-02-27 17:19:22 +01:00
Chocobozzz 2c29ad4f3b
Fix job panel sorting in administration 2018-02-27 16:57:53 +01:00
Chocobozzz 056aa7f2b4
Fix resolution for portrait videos 2018-02-27 15:57:43 +01:00
Chocobozzz 6fdc553adb
Don't fail on upload if we cannot generate thumbnail 2018-02-27 13:46:56 +01:00
Chocobozzz 266707202c
Keep ratio for thumbnails 2018-02-27 11:29:24 +01:00
Chocobozzz ea99d15fe8
Add logs for scheduler 2018-02-27 11:08:59 +01:00
Chocobozzz 0a8ae68459
Add log when fetching the outbox 2018-02-27 11:06:43 +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 e3bb78a213
Fix lint 2018-02-23 16:08:32 +01:00
Chocobozzz 285fe7c930
Detect posting request in our own inbox 2018-02-23 15:09:12 +01:00
Chocobozzz 1ee48d1903
Don't follow ourselves 2018-02-23 14:48:30 +01:00
Chocobozzz 1f30a1853e
Add confirm when admin use custom js/css 2018-02-22 15:29:32 +01:00
Chocobozzz 78967fca4c
Register service worker 2018-02-22 14:15:23 +01:00
Chocobozzz 93df58cc48
Fix service worker registration 2018-02-22 11:54:24 +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 e8cb44090e
Add links to comment mentions 2018-02-21 16:44:43 +01:00
Chocobozzz 276d03ed1a
Unlisted videos are not displayed on Mastodon now 2018-02-21 10:07:02 +01:00
Chocobozzz a41e183c03
Add nsfw support in import-videos 2018-02-20 19:05:14 +01:00
Chocobozzz b6fe1f985c
Fix 401 detection on import videos 2018-02-20 18:18:47 +01:00
Chocobozzz 61b3e146e1
Add ability to import videos from all supported youtube-dl sites 2018-02-20 18:16:13 +01:00
LecygneNoir 71578f317e import-youtube: add try/catch to manage token expiration when importing lot of youtube videos (#306) 2018-02-20 18:03:56 +01:00
Chocobozzz 5de8a55abc
Handle line feeds in comments 2018-02-20 10:41:11 +01:00
Chocobozzz 6ff9c676e9
Fix lint 2018-02-19 11:31:50 +01:00
Chocobozzz 35501c0fa7
Add ability to import just one video from youtube 2018-02-19 11:12:58 +01:00
Chocobozzz 3bb6c52645
Fix sort inconsistency 2018-02-19 10:48:44 +01:00
Chocobozzz 6de3676898
Add ability to update thumbnail and preview on client 2018-02-16 16:35:32 +01:00
Chocobozzz b6a4fd6b09
Fix avatars on video watch page 2018-02-16 11:19:54 +01:00
Chocobozzz 0b49571268
Try to improve production guide 2018-02-16 11:04:12 +01:00
Chocobozzz 63ce5a54f2
Fix duplicates detection 2018-02-16 11:03:42 +01:00
Chocobozzz 5f26c73521
Import videos in the correct order 2018-02-16 10:11:12 +01:00
Chocobozzz 02988fdc0b
Fix remote image fetching 2018-02-15 18:40:24 +01:00
Chocobozzz 2422c46b27
Implement support field in video and video channel 2018-02-15 15:29:07 +01:00
Chocobozzz 34cbef8c6c
Fix max buffer reached in youtube import 2018-02-15 11:27:11 +01:00
Chocobozzz 82815eb670
Fix concurrency issue on video upload 2018-02-14 18:40:39 +01:00
Chocobozzz 7b0956ec4f
Fix tests 2018-02-14 18:33:06 +01:00
Chocobozzz 8cac1b6446
Move adding a video view videojs peertube plugin 2018-02-14 17:16:32 +01:00
Chocobozzz 1d791a26de
Support thumbnails in youtube import 2018-02-14 16:03:09 +01:00
Chocobozzz e3a682a877
Handle thumbnail update 2018-02-14 16:03:09 +01:00
Chocobozzz ac81d1a06d
Add ability to set video thumbnail/preview 2018-02-14 16:03:09 +01:00
Chocobozzz 29c6b82944
Fix deleting a video with comments 2018-02-13 13:35:10 +01:00
Chocobozzz a87d467ad7
Fix upload from CLI script 2018-02-12 12:48:58 +01:00
Chocobozzz 3df456380a
Don't stuck on active jobs 2018-02-12 11:25:09 +01:00
Chocobozzz e78720386f
Improve youtube import script 2018-02-12 11:11:38 +01:00
Chocobozzz a7fea183f0
Begin import script with youtube-dl 2018-02-09 16:47:06 +01:00
Chocobozzz c4377f4b5b
Fix config test 2018-02-09 13:36:07 +01:00
Chocobozzz 1e9d7b60cd
Fix crash with websocket tracker 2018-02-09 13:15:40 +01:00
Chocobozzz 53ac1448f0
Fix timestamp logging 2018-02-09 10:54:53 +01:00
Chocobozzz 7193ad1044
Add service worker 2018-02-08 17:31:05 +01:00
Chocobozzz 5980a252a7
Server the manifest too 2018-02-08 10:09:41 +01:00
Chocobozzz 18cfac83a1
Fix job count api 2018-02-08 09:52:57 +01:00
Chocobozzz fafc13fff1
Fix job queue api 2018-02-07 10:32:14 +01:00
Chocobozzz 0bc22f8d7e
Correctly set the activity audience in outbox 2018-02-07 10:03:11 +01:00
Chocobozzz 3c75ce12d5
Only list unlisted/public videos in outbox 2018-02-04 23:04:32 +01:00
Chocobozzz 1d230c4419
Fix announces when fetching the actor outbox 2018-02-04 22:40:37 +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 81ebea48bf
Don't leak unlisted videos 2018-01-31 14:40:42 +01:00
Chocobozzz 915c5bbe53
Add version in footer 2018-01-31 10:19:34 +01:00
Chocobozzz 802dbc32a3
Fix job queue backoff 2018-01-30 15:51:55 +01:00
Chocobozzz f076daa76a
Add tests for emails 2018-01-30 15:16:24 +01:00
Chocobozzz ecb4e35f4e
Add ability to reset our password 2018-01-30 13:27:07 +01:00
Chocobozzz ba12e8b3a6
Add ability to login with email 2018-01-29 16:09:50 +01:00
Chocobozzz 4805cff179
Fix migrations 2018-01-29 11:58:07 +01:00
Chocobozzz 2fe8692797
Add missing context fields 2018-01-29 11:05:52 +01:00
Chocobozzz 46531a0abd
Add id to likes/dislikes/comments/shares collections 2018-01-29 10:52:19 +01:00
Chocobozzz 8dfd8fd7ca
Fix video announces processing 2018-01-26 17:48:41 +01:00
Chocobozzz 0a67e28bee
Use sensitive instead of nsfw in activitypub 2018-01-26 17:25:35 +01:00
Chocobozzz 4ba3b8ea1b
Don't rehost announced video activities 2018-01-26 15:49:57 +01:00