oweals/peertube.git
6 years agoFix import videos duplicate detection
Chocobozzz [Tue, 4 Sep 2018 09:25:40 +0000 (11:25 +0200)]
Fix import videos duplicate detection

6 years agoFix nsfw filter
Chocobozzz [Tue, 4 Sep 2018 09:19:19 +0000 (11:19 +0200)]
Fix nsfw filter

6 years agoAdd video recomandation by tags (#1001)
Jorropo [Tue, 4 Sep 2018 09:01:54 +0000 (11:01 +0200)]
Add video recomandation by tags (#1001)

* Recommendation by tags (thx bradsk88)

Thx bradsk88 for the help.

* Prefer jest-preset-angular to skip need for babel config

* Fix jest

6 years agoAdd federation to ownership change
Chocobozzz [Tue, 4 Sep 2018 08:22:10 +0000 (10:22 +0200)]
Add federation to ownership change

6 years agoAdd trending sort tests
Chocobozzz [Tue, 4 Sep 2018 06:58:23 +0000 (08:58 +0200)]
Add trending sort tests

6 years agoFix overview cache
Chocobozzz [Mon, 3 Sep 2018 16:14:05 +0000 (18:14 +0200)]
Fix overview cache

6 years agoFix trending videos count
Chocobozzz [Mon, 3 Sep 2018 16:05:12 +0000 (18:05 +0200)]
Fix trending videos count

6 years agoUsers can change ownership of their video [#510] (#888)
Gaëtan Rizio [Tue, 4 Sep 2018 06:57:13 +0000 (08:57 +0200)]
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

6 years agofix likes bar, grid adjustment and menu width
Rigel Kent [Mon, 3 Sep 2018 13:01:52 +0000 (15:01 +0200)]
fix likes bar, grid adjustment and menu width

6 years agoTry to fix embed webpack build
Chocobozzz [Mon, 3 Sep 2018 09:26:19 +0000 (11:26 +0200)]
Try to fix embed webpack build

6 years agoFix thumbnail/preview in upload script
Chocobozzz [Mon, 3 Sep 2018 09:12:53 +0000 (11:12 +0200)]
Fix thumbnail/preview in upload script

6 years agoDon't get quota twice
Chocobozzz [Mon, 3 Sep 2018 07:30:13 +0000 (09:30 +0200)]
Don't get quota twice

6 years agoadd title ellipsis over two lines to miniatures
Rigel Kent [Sun, 2 Sep 2018 21:36:22 +0000 (23:36 +0200)]
add title ellipsis over two lines to miniatures

6 years agoadd a hotkey for menu toggling and a secondary hotkey to search
Rigel Kent [Sun, 2 Sep 2018 19:46:43 +0000 (21:46 +0200)]
add a hotkey for menu toggling and a secondary hotkey to search

6 years agoadd daily quota to the features table information
Rigel Kent [Sun, 2 Sep 2018 19:35:52 +0000 (21:35 +0200)]
add daily quota to the features table information

6 years agoadd like, dislike and subscribe button hotkeys
Rigel Kent [Sun, 2 Sep 2018 18:54:23 +0000 (20:54 +0200)]
add like, dislike and subscribe button hotkeys

6 years agofix other video margin-top
Rigel Kent [Sun, 2 Sep 2018 17:34:36 +0000 (19:34 +0200)]
fix other video margin-top

6 years agomake left menu show the scrollbar on hover/focus
Rigel Kent [Sun, 2 Sep 2018 17:22:34 +0000 (19:22 +0200)]
make left menu show the scrollbar on hover/focus

add hotkey to the overview page

6 years agorestore video-bottom margins
Rigel Kent [Sun, 2 Sep 2018 14:08:39 +0000 (16:08 +0200)]
restore video-bottom margins

6 years agooptimize size of the README schemas (#1002)
Jorropo [Sun, 2 Sep 2018 09:28:09 +0000 (11:28 +0200)]
optimize size of the README schemas (#1002)

```
/support/doc/user/watch-p2p.png -- 21.87kb -> 16.44kb (24.8%)
/support/doc/user/watch-video.png -- 27.89kb -> 21.04kb (24.56%)
/support/doc/user/decentralized.png -- 21.88kb -> 17.75kb (18.87%)
```

6 years agoFix videos overview tags section
Chocobozzz [Fri, 31 Aug 2018 15:32:35 +0000 (17:32 +0200)]
Fix videos overview tags section

6 years agoTrending by interval
Chocobozzz [Fri, 31 Aug 2018 15:18:13 +0000 (17:18 +0200)]
Trending by interval

6 years agoAdd more playback speed (0.75 and 1.25)
Glandos [Fri, 31 Aug 2018 15:10:01 +0000 (17:10 +0200)]
Add more playback speed (0.75 and 1.25)

Those speeds are much more closer to the normal speed. They are useful for listening to human speeches.

6 years agoRefactor: Separated "Other Videos" section into a dedicated component/service (#969)
Brad Johnson [Fri, 31 Aug 2018 15:19:21 +0000 (09:19 -0600)]
Refactor: Separated "Other Videos" section into a dedicated component/service (#969)

* Separated "Other Videos" section into a dedicated component/service

I'm currently working on some proof-of-concepts for recommendation
providers that could work with PeerTube to provide useful video
suggestions to the user.

As a first step, I want to have great clarity about how PeerTube,
itself, will surface these videos to the user.

With this branch, I'm refactoring the "recommendations" to make it
easier to swap out different recommender implementations quickly.

Stop recommender from including the video that's being watched.

Ensure always 5 recommendations

* Treat recommendations as a stream of values, rather than a single async value.

* Prioritize readability over HTTP response size early-optimization.

* Simplify pipe

6 years agoAdd channel avatar to overviews
Chocobozzz [Fri, 31 Aug 2018 12:26:51 +0000 (14:26 +0200)]
Add channel avatar to overviews

6 years agoDelete highlighted comment too if needed
Chocobozzz [Fri, 31 Aug 2018 11:46:56 +0000 (13:46 +0200)]
Delete highlighted comment too if needed

6 years agoCleanup video API SQL requests
Chocobozzz [Fri, 31 Aug 2018 09:44:48 +0000 (11:44 +0200)]
Cleanup video API SQL requests

6 years agoUse custom rate limiter when asking verif email
Chocobozzz [Fri, 31 Aug 2018 09:44:07 +0000 (11:44 +0200)]
Use custom rate limiter when asking verif email

6 years agoAdd sql trace in error log on sequelize error
Chocobozzz [Fri, 31 Aug 2018 09:43:46 +0000 (11:43 +0200)]
Add sql trace in error log on sequelize error

6 years agoFix user create daily quota component
Chocobozzz [Fri, 31 Aug 2018 08:05:54 +0000 (10:05 +0200)]
Fix user create daily quota component

6 years agoTry to improve sql videos list query
Chocobozzz [Fri, 31 Aug 2018 07:53:07 +0000 (09:53 +0200)]
Try to improve sql videos list query

Split the complex query in 2 different queries

6 years agoVideos overview page: first version
Chocobozzz [Thu, 30 Aug 2018 12:58:00 +0000 (14:58 +0200)]
Videos overview page: first version

6 years agoadd user account email verificiation (#977)
Josh Morel [Fri, 31 Aug 2018 07:18:19 +0000 (03:18 -0400)]
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

6 years agoFix job tests
Chocobozzz [Wed, 29 Aug 2018 14:52:17 +0000 (16:52 +0200)]
Fix job tests

6 years agoBufferize videos views in redis
Chocobozzz [Wed, 29 Aug 2018 14:26:25 +0000 (16:26 +0200)]
Bufferize videos views in redis

6 years agowatch view visual tweaks and search/comment placeholder dismiss on focus (#983)
Rigel Kent [Thu, 30 Aug 2018 09:15:22 +0000 (11:15 +0200)]
watch view visual tweaks and search/comment placeholder dismiss on focus (#983)

- make the placeholder disappear on focus in the search bar
- make the placeholder disappear on focus in the comment textarea
- make the texarea resize automagically
- refactor the watch view to use bootstrap 4's flexgrid
- move action buttons of the watch view to the right of the video info
- responsive tweaks and margin adjustments in the watch view

6 years agoChanges the README schemas (#984)
Edouard SCHWEISGUTH [Thu, 30 Aug 2018 06:33:05 +0000 (08:33 +0200)]
Changes the README schemas (#984)

* Change readme schema & add their sources

* Add titles

6 years agoreplacing placeholder and feature table display improvement
Rigel Kent [Tue, 28 Aug 2018 20:58:13 +0000 (22:58 +0200)]
replacing placeholder and feature table display improvement

6 years agoRefractor user quota SQL queries
Chocobozzz [Tue, 28 Aug 2018 16:29:29 +0000 (18:29 +0200)]
Refractor user quota SQL queries

6 years agoAdd features table on signup
Chocobozzz [Tue, 28 Aug 2018 15:39:29 +0000 (17:39 +0200)]
Add features table on signup

6 years agoMove abuse state column at the end
Chocobozzz [Tue, 28 Aug 2018 14:05:38 +0000 (16:05 +0200)]
Move abuse state column at the end

6 years agoFix search results
Chocobozzz [Tue, 28 Aug 2018 14:02:02 +0000 (16:02 +0200)]
Fix search results

6 years agoOptimize channel search query
Chocobozzz [Tue, 28 Aug 2018 13:16:04 +0000 (15:16 +0200)]
Optimize channel search query

6 years agoFix tests
Chocobozzz [Tue, 28 Aug 2018 09:32:03 +0000 (11:32 +0200)]
Fix tests

6 years agoFix oauth server module
Chocobozzz [Tue, 28 Aug 2018 08:56:09 +0000 (10:56 +0200)]
Fix oauth server module

6 years agoFix player playback (video never ends)
Chocobozzz [Tue, 28 Aug 2018 08:23:01 +0000 (10:23 +0200)]
Fix player playback (video never ends)

6 years agokeyboard shortcuts and key map view (#974)
Rigel Kent [Tue, 28 Aug 2018 07:32:03 +0000 (09:32 +0200)]
keyboard shortcuts and key map view (#974)

6 years agoSuggest TCP/IP tuning to prevent buffer bloat + latency (#976)
Micah Elizabeth Scott [Tue, 28 Aug 2018 07:29:29 +0000 (00:29 -0700)]
Suggest TCP/IP tuning to prevent buffer bloat + latency (#976)

* Suggest TCP/IP CoDel and BBR congestion control in production guide

This seems to be helping lots on my server, where the default
(Debian 9) was to use FIFO queueing which would cause buffer bloat
and huge latency for clients on slower network links.

6 years agoDisplay report reason in multiple lines (#957)
Felix Ableitner [Tue, 28 Aug 2018 07:06:00 +0000 (02:06 -0500)]
Display report reason in multiple lines (#957)

* Display report reason in multiple lines

* more adjustments:

- move report reason into dropdown
- allow line wrap in dropdown (also in video blacklist)
- fix colspan in blacklist dropdown
- merge css rules into moderation.component.scss

* use min-width for labels

6 years agoImplement daily upload limit (#956)
Felix Ableitner [Tue, 28 Aug 2018 07:01:35 +0000 (02:01 -0500)]
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

6 years agoImprove error message on actor name conflict
Chocobozzz [Mon, 27 Aug 2018 14:42:27 +0000 (16:42 +0200)]
Improve error message on actor name conflict

6 years agoUpgrade server dependencies
Chocobozzz [Mon, 27 Aug 2018 14:34:41 +0000 (16:34 +0200)]
Upgrade server dependencies

6 years agoCorrectly migrate to fs-extra
Chocobozzz [Mon, 27 Aug 2018 14:23:34 +0000 (16:23 +0200)]
Correctly migrate to fs-extra

6 years agoUnderline links in feed popover when hovering
Chocobozzz [Mon, 27 Aug 2018 14:02:34 +0000 (16:02 +0200)]
Underline links in feed popover when hovering

6 years agoAdd start at checkbox in share modal
Chocobozzz [Mon, 27 Aug 2018 13:59:00 +0000 (15:59 +0200)]
Add start at checkbox in share modal

6 years agoreplace fs by fs-extra to prevent EMFILE error
Rigel Kent [Mon, 27 Aug 2018 11:28:49 +0000 (13:28 +0200)]
replace fs by fs-extra to prevent EMFILE error

6 years agoAdd parse-log doc
Chocobozzz [Mon, 27 Aug 2018 13:33:22 +0000 (15:33 +0200)]
Add parse-log doc

6 years agoFix deprecated ng-bootstrap methods
Chocobozzz [Mon, 27 Aug 2018 13:09:04 +0000 (15:09 +0200)]
Fix deprecated ng-bootstrap methods

6 years agoAdd popover autoclose
Chocobozzz [Mon, 27 Aug 2018 09:52:14 +0000 (11:52 +0200)]
Add popover autoclose

6 years agoUpgrade client dependencies
Chocobozzz [Mon, 27 Aug 2018 09:45:58 +0000 (11:45 +0200)]
Upgrade client dependencies

6 years agoDon't compile all languages in travis
Chocobozzz [Mon, 27 Aug 2018 09:34:43 +0000 (11:34 +0200)]
Don't compile all languages in travis

6 years agoAdd portuguese and swedish languages
Chocobozzz [Mon, 27 Aug 2018 09:20:06 +0000 (11:20 +0200)]
Add portuguese and swedish languages

6 years agoUpgrade translations
Chocobozzz [Mon, 27 Aug 2018 08:04:07 +0000 (10:04 +0200)]
Upgrade translations

6 years agoFetch outbox when searching an actor
Chocobozzz [Fri, 24 Aug 2018 13:36:50 +0000 (15:36 +0200)]
Fetch outbox when searching an actor

6 years agoSearch video channel handle/uri
Chocobozzz [Fri, 24 Aug 2018 09:04:02 +0000 (11:04 +0200)]
Search video channel handle/uri

6 years agoInfinite scroll to list our subscriptions
Chocobozzz [Fri, 24 Aug 2018 08:31:56 +0000 (10:31 +0200)]
Infinite scroll to list our subscriptions

6 years agoAdd ability to search video channels
Chocobozzz [Thu, 23 Aug 2018 15:58:39 +0000 (17:58 +0200)]
Add ability to search video channels

6 years agoFix tests
Chocobozzz [Thu, 23 Aug 2018 08:30:53 +0000 (10:30 +0200)]
Fix tests

6 years agoRefractor comment creation from federation
Chocobozzz [Wed, 22 Aug 2018 14:59:55 +0000 (16:59 +0200)]
Refractor comment creation from federation

6 years agoAdd refresh video on search
Chocobozzz [Wed, 22 Aug 2018 14:15:35 +0000 (16:15 +0200)]
Add refresh video on search

6 years agoAdd ability to search a video with an URL
Chocobozzz [Wed, 22 Aug 2018 09:51:39 +0000 (11:51 +0200)]
Add ability to search a video with an URL

6 years agoAdd local user subscriptions
Chocobozzz [Tue, 21 Aug 2018 14:18:59 +0000 (16:18 +0200)]
Add local user subscriptions

6 years agoAdd get subscription endpoint
Chocobozzz [Tue, 21 Aug 2018 08:34:18 +0000 (10:34 +0200)]
Add get subscription endpoint

6 years agoAdd ability to set a name to a channel
Chocobozzz [Fri, 17 Aug 2018 13:45:42 +0000 (15:45 +0200)]
Add ability to set a name to a channel

6 years agoUse height instead of width to represent the video resolution
Chocobozzz [Fri, 17 Aug 2018 09:24:36 +0000 (11:24 +0200)]
Use height instead of width to represent the video resolution

6 years agoAdd subscriptions endpoints to REST API
Chocobozzz [Thu, 16 Aug 2018 13:25:20 +0000 (15:25 +0200)]
Add subscriptions endpoints to REST API

6 years agoCorrectly cache server translations
Chocobozzz [Thu, 16 Aug 2018 09:57:01 +0000 (11:57 +0200)]
Correctly cache server translations

6 years agoFix dev locale
Chocobozzz [Thu, 16 Aug 2018 09:48:48 +0000 (11:48 +0200)]
Fix dev locale

6 years agoCache player translations
Chocobozzz [Thu, 16 Aug 2018 09:39:58 +0000 (11:39 +0200)]
Cache player translations

6 years agoSplit users controller
Chocobozzz [Thu, 16 Aug 2018 09:26:22 +0000 (11:26 +0200)]
Split users controller

6 years ago[Issue 641] Add shortcut my videos link in menu-wrapper
potedeo [Thu, 16 Aug 2018 14:42:00 +0000 (16:42 +0200)]
[Issue 641] Add shortcut my videos link in menu-wrapper

6 years ago(docker) add quota to the docker configuration values (#964)
kaiyou [Sun, 26 Aug 2018 09:16:16 +0000 (11:16 +0200)]
(docker) add quota to the docker configuration values (#964)

6 years agoadd postgresql96-contrib to the FreeBSD dependencies (#958)
osauzet [Fri, 24 Aug 2018 14:12:41 +0000 (16:12 +0200)]
add postgresql96-contrib to the FreeBSD dependencies  (#958)

6 years agoOnly enable gzip for HTML/CSS/JS
Micah Elizabeth Scott [Thu, 23 Aug 2018 19:12:08 +0000 (12:12 -0700)]
Only enable gzip for HTML/CSS/JS

No compression on JSON endpoints, in order to protect
from potential compression+encryption data leak attacks (like BREACH)

6 years agoAdd gzip support to the sample nginx configuration
Micah Elizabeth Scott [Wed, 22 Aug 2018 21:34:41 +0000 (14:34 -0700)]
Add gzip support to the sample nginx configuration

Without gzip explicitly enabled, load times suffer from transferring
over a megabyte of plaintext javascript. With gzip enabled, the bundle
is down to about 300K, and loads much faster.

This change does not enable gzip on files that are already compressed,
so images, fonts, and videos will be sent without the CPU overhead.

6 years agoAdd missing instructions to Contributing document
Felix Ableitner [Sat, 18 Aug 2018 21:53:43 +0000 (16:53 -0500)]
Add missing instructions to Contributing document

6 years agoFix AutoThread
Jorropo [Tue, 21 Aug 2018 12:09:53 +0000 (14:09 +0200)]
Fix AutoThread

6 years agoReduce FreeBSD title size
Chocobozzz [Tue, 21 Aug 2018 08:48:57 +0000 (10:48 +0200)]
Reduce FreeBSD title size

6 years agoFix release script
Chocobozzz [Tue, 21 Aug 2018 07:29:13 +0000 (09:29 +0200)]
Fix release script

6 years agoFix changelog
Jorropo [Tue, 21 Aug 2018 07:22:25 +0000 (09:22 +0200)]
Fix changelog

6 years agoBumped to version v1.0.0-beta.11 v1.0.0-beta.11
Chocobozzz [Tue, 21 Aug 2018 06:59:06 +0000 (08:59 +0200)]
Bumped to version v1.0.0-beta.11

6 years agoUpdate changelog
Chocobozzz [Tue, 21 Aug 2018 06:56:22 +0000 (08:56 +0200)]
Update changelog

6 years agocorrect password reset disabled binding
Josh Morel [Sun, 19 Aug 2018 14:11:08 +0000 (10:11 -0400)]
correct password reset disabled binding

6 years agoChange npm repo to git+https
Jorropo [Thu, 16 Aug 2018 08:57:57 +0000 (10:57 +0200)]
Change npm repo to git+https

6 years agoTranslate player according to the interface lang
Chocobozzz [Thu, 16 Aug 2018 09:11:20 +0000 (11:11 +0200)]
Translate player according to the interface lang

6 years agoTranslate subtitle langs in player
Chocobozzz [Thu, 16 Aug 2018 08:48:35 +0000 (10:48 +0200)]
Translate subtitle langs in player

6 years agoEnsure youtubedl binary exists in ydl helper
Chocobozzz [Thu, 16 Aug 2018 07:45:51 +0000 (09:45 +0200)]
Ensure youtubedl binary exists in ydl helper

6 years agoFix client build
Chocobozzz [Tue, 14 Aug 2018 17:24:56 +0000 (19:24 +0200)]
Fix client build

6 years agoAdd quota used in users list
Chocobozzz [Tue, 14 Aug 2018 15:56:51 +0000 (17:56 +0200)]
Add quota used in users list

6 years agoRegroup abuse and blacklisted videos inside "moderation"
Chocobozzz [Tue, 14 Aug 2018 14:38:37 +0000 (16:38 +0200)]
Regroup abuse and blacklisted videos inside "moderation"