oweals/peertube.git
6 years agoOptimize SQL requests of videos AP endpoints
Chocobozzz [Wed, 19 Sep 2018 08:16:44 +0000 (10:16 +0200)]
Optimize SQL requests of videos AP endpoints

6 years agoFix admin access to moderators
Chocobozzz [Wed, 19 Sep 2018 07:53:49 +0000 (09:53 +0200)]
Fix admin access to moderators

6 years agoOptimize SQL requests of watch page API endpoints
Chocobozzz [Tue, 18 Sep 2018 10:00:49 +0000 (12:00 +0200)]
Optimize SQL requests of watch page API endpoints

6 years agoDon't get recommended videos twice
Chocobozzz [Tue, 18 Sep 2018 09:59:05 +0000 (11:59 +0200)]
Don't get recommended videos twice

6 years agoReduce video.ts file size by moving some methods in other files
Chocobozzz [Tue, 18 Sep 2018 09:02:51 +0000 (11:02 +0200)]
Reduce video.ts file size by moving some methods in other files

6 years agonormalize robot.txt and specify test servers as scope of security audits
Rigel Kent [Tue, 18 Sep 2018 09:18:51 +0000 (11:18 +0200)]
normalize robot.txt and specify test servers as scope of security audits

6 years agoFix client build 1082/head
Chocobozzz [Tue, 18 Sep 2018 06:21:04 +0000 (08:21 +0200)]
Fix client build

6 years agoImprove webtorrent import error message when the torrent has multiple
Chocobozzz [Mon, 17 Sep 2018 15:50:51 +0000 (17:50 +0200)]
Improve webtorrent import error message when the torrent has multiple
files

6 years agoTry to improve infinite pagination
Chocobozzz [Mon, 17 Sep 2018 15:36:46 +0000 (17:36 +0200)]
Try to improve infinite pagination

6 years agoAdd comments in nginx regarding blocks that can be safely removed
Chocobozzz [Mon, 17 Sep 2018 13:45:17 +0000 (15:45 +0200)]
Add comments in nginx regarding blocks that can be safely removed

6 years agoadding missing i18n for schedule option
Rigel Kent [Mon, 17 Sep 2018 14:44:41 +0000 (16:44 +0200)]
adding missing i18n for schedule option

6 years agoFix description/comments max width
Chocobozzz [Mon, 17 Sep 2018 13:28:32 +0000 (15:28 +0200)]
Fix description/comments max width

6 years agoFix ios player playback/subtitles menu
Chocobozzz [Mon, 17 Sep 2018 13:00:46 +0000 (15:00 +0200)]
Fix ios player playback/subtitles menu

6 years agoFix checker if we don't have redundancy strategies
Chocobozzz [Mon, 17 Sep 2018 09:28:08 +0000 (11:28 +0200)]
Fix checker if we don't have redundancy strategies

6 years agoFix "no results" on overview page
Chocobozzz [Mon, 17 Sep 2018 08:28:38 +0000 (10:28 +0200)]
Fix "no results" on overview page

6 years agoHandle actors search beginning with '@'
Chocobozzz [Mon, 17 Sep 2018 08:12:30 +0000 (10:12 +0200)]
Handle actors search beginning with '@'

Something like @toto@example.com

6 years agoFix overviews tests
Chocobozzz [Mon, 17 Sep 2018 07:39:08 +0000 (09:39 +0200)]
Fix overviews tests

6 years agoAdd possibility to manage trust_proxy list in docker image
victor héry [Sun, 16 Sep 2018 15:53:57 +0000 (17:53 +0200)]
Add possibility to manage trust_proxy list in docker image

6 years agoRefractor activities sending
Chocobozzz [Fri, 14 Sep 2018 14:51:35 +0000 (16:51 +0200)]
Refractor activities sending

6 years agoProcess inbox activities in a queue
Chocobozzz [Fri, 14 Sep 2018 14:47:15 +0000 (16:47 +0200)]
Process inbox activities in a queue

6 years agoAdd redundancy stats
Chocobozzz [Fri, 14 Sep 2018 12:57:59 +0000 (14:57 +0200)]
Add redundancy stats

6 years agoFix tag search on overview page
Chocobozzz [Fri, 14 Sep 2018 12:36:12 +0000 (14:36 +0200)]
Fix tag search on overview page

6 years agoSpeed up overviews route
Chocobozzz [Fri, 14 Sep 2018 09:52:23 +0000 (11:52 +0200)]
Speed up overviews route

6 years agoRaw query to get video ids
Chocobozzz [Fri, 14 Sep 2018 09:09:34 +0000 (11:09 +0200)]
Raw query to get video ids

6 years agoAdd recently added redundancy strategy
Chocobozzz [Fri, 14 Sep 2018 09:05:38 +0000 (11:05 +0200)]
Add recently added redundancy strategy

6 years agoSpeaup clean script
Chocobozzz [Fri, 14 Sep 2018 08:07:33 +0000 (10:07 +0200)]
Speaup clean script

6 years agoTest to remove delay in tests when running multiple servers
Chocobozzz [Fri, 14 Sep 2018 07:58:49 +0000 (09:58 +0200)]
Test to remove delay in tests when running multiple servers

6 years agoAdd trending videos strategy
Chocobozzz [Fri, 14 Sep 2018 07:57:21 +0000 (09:57 +0200)]
Add trending videos strategy

6 years agoProcess last hour views instead of current hour
Chocobozzz [Thu, 13 Sep 2018 11:59:41 +0000 (13:59 +0200)]
Process last hour views instead of current hour

6 years agoBasic video redundancy implementation
Chocobozzz [Tue, 11 Sep 2018 14:27:07 +0000 (16:27 +0200)]
Basic video redundancy implementation

6 years agoBumped to version v1.0.0-beta.13 v1.0.0-beta.13
Chocobozzz [Thu, 13 Sep 2018 09:07:53 +0000 (11:07 +0200)]
Bumped to version v1.0.0-beta.13

6 years agoRetry transactions on user endpoints if needed
Chocobozzz [Thu, 13 Sep 2018 08:22:14 +0000 (10:22 +0200)]
Retry transactions on user endpoints if needed

6 years agoChangelog beta 13
Chocobozzz [Thu, 13 Sep 2018 08:15:29 +0000 (10:15 +0200)]
Changelog beta 13

6 years agoFix video views increment
Chocobozzz [Thu, 13 Sep 2018 08:13:25 +0000 (10:13 +0200)]
Fix video views increment

6 years agoFix feeds with channel filter
Chocobozzz [Thu, 13 Sep 2018 07:48:34 +0000 (09:48 +0200)]
Fix feeds with channel filter

6 years agoFix video channel deletion
Chocobozzz [Thu, 13 Sep 2018 07:31:04 +0000 (09:31 +0200)]
Fix video channel deletion

6 years agoTry to fix bcrypt on node 8.12
Chocobozzz [Thu, 13 Sep 2018 07:20:06 +0000 (09:20 +0200)]
Try to fix bcrypt on node 8.12

6 years agoUpdate translations
Chocobozzz [Thu, 13 Sep 2018 07:19:24 +0000 (09:19 +0200)]
Update translations

6 years agoFix client build
Chocobozzz [Wed, 12 Sep 2018 07:52:08 +0000 (09:52 +0200)]
Fix client build

6 years agoupdate hotkeys to include user-specific routes
Rigel Kent [Sat, 8 Sep 2018 15:54:38 +0000 (17:54 +0200)]
update hotkeys to include user-specific routes

also fix left-menu width

6 years agowrap the hotkeys component to allow templating :art:
Rigel Kent [Tue, 11 Sep 2018 13:07:31 +0000 (15:07 +0200)]
wrap the hotkeys component to allow templating :art:

6 years agoDon't include `preload` flag in sample HSTS header
Felix Ableitner [Tue, 11 Sep 2018 18:04:49 +0000 (13:04 -0500)]
Don't include `preload` flag in sample HSTS header

This goes against the recommendations (preloading should be opt-in). Putting it in the example makes it likely that people enable it without knowing what it means.

https://hstspreload.org/?domain=peertube.social#opt-in

6 years agospecify shift in keyboard shortcuts cheatsheet
Rigel Kent [Tue, 11 Sep 2018 12:13:02 +0000 (14:13 +0200)]
specify shift in keyboard shortcuts cheatsheet

6 years agoremember theme in localStorage
Rigel Kent [Tue, 11 Sep 2018 09:41:10 +0000 (11:41 +0200)]
remember theme in localStorage

6 years agouse focus-visible polyfill to improve keyboard navigation
Rigel Kent [Sat, 8 Sep 2018 12:34:32 +0000 (14:34 +0200)]
use focus-visible polyfill to improve keyboard navigation

Only the homepage is concerned, but it should have decent keyboard
navigation support now.

6 years agofurther enhance tools install explanation
Josh Morel [Mon, 10 Sep 2018 11:37:06 +0000 (07:37 -0400)]
further enhance tools install explanation

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

6 years agoAdd beta 12 changelog
Chocobozzz [Mon, 10 Sep 2018 09:39:45 +0000 (11:39 +0200)]
Add beta 12 changelog

6 years agoUpdate CREDITS
Chocobozzz [Mon, 10 Sep 2018 09:32:26 +0000 (11:32 +0200)]
Update CREDITS

6 years agoUpgrade translations
Chocobozzz [Mon, 10 Sep 2018 07:51:35 +0000 (09:51 +0200)]
Upgrade translations

6 years agomake HSTS opt-in and leave it to the reverse-proxy
Rigel Kent [Sun, 9 Sep 2018 20:10:38 +0000 (22:10 +0200)]
make HSTS opt-in and leave it to the reverse-proxy

6 years agoadd input color to cope with browser themes
Rigel Kent [Sun, 9 Sep 2018 12:43:30 +0000 (14:43 +0200)]
add input color to cope with browser themes

6 years agouse css class for loading bar color
Rigel Kent [Fri, 7 Sep 2018 20:46:11 +0000 (22:46 +0200)]
use css class for loading bar color

6 years agoUpdate translations
Chocobozzz [Fri, 7 Sep 2018 15:40:45 +0000 (17:40 +0200)]
Update translations

6 years agomove .sass-lint.yml to client/
Rigel Kent [Fri, 7 Sep 2018 08:51:42 +0000 (10:51 +0200)]
move .sass-lint.yml to client/

6 years agoadd vulnerability disclosure policy
Rigel Kent [Thu, 6 Sep 2018 12:07:10 +0000 (14:07 +0200)]
add vulnerability disclosure policy

6 years agodraft "security.txt" spec integration (#1020)
Austin Heap [Thu, 6 Sep 2018 12:23:46 +0000 (05:23 -0700)]
draft "security.txt" spec integration (#1020)

6 years agomove theme toggle icon to the right
Rigel Kent [Thu, 6 Sep 2018 11:47:20 +0000 (13:47 +0200)]
move theme toggle icon to the right

6 years agoFix video channel url in watch page
Chocobozzz [Thu, 6 Sep 2018 11:41:23 +0000 (13:41 +0200)]
Fix video channel url in watch page

6 years agorefactor theme toggle into a service
Rigel Kent [Thu, 6 Sep 2018 10:00:53 +0000 (12:00 +0200)]
refactor theme toggle into a service

6 years agoAlign other videos block on small screens
Chocobozzz [Thu, 6 Sep 2018 06:59:46 +0000 (08:59 +0200)]
Align other videos block on small screens

6 years agoUnsubscribe from the router
Chocobozzz [Wed, 5 Sep 2018 15:18:13 +0000 (17:18 +0200)]
Unsubscribe from the router

6 years agoFix video player theatre mode
Chocobozzz [Wed, 5 Sep 2018 14:10:03 +0000 (16:10 +0200)]
Fix video player theatre mode

6 years agofix comment and top-menu placement regressions
Rigel Kent [Wed, 5 Sep 2018 18:00:47 +0000 (20:00 +0200)]
fix comment and top-menu placement regressions

6 years agoFix occitan label
Chocobozzz [Wed, 5 Sep 2018 13:59:43 +0000 (15:59 +0200)]
Fix occitan label

6 years agoDislike bar in the same color as the button
Chocobozzz [Wed, 5 Sep 2018 13:40:45 +0000 (15:40 +0200)]
Dislike bar in the same color as the button

6 years agoPut "start at" at the top of the modal
Chocobozzz [Wed, 5 Sep 2018 13:32:15 +0000 (15:32 +0200)]
Put "start at" at the top of the modal

6 years agoClean up change password validation
Chocobozzz [Wed, 5 Sep 2018 12:59:15 +0000 (14:59 +0200)]
Clean up change password validation

6 years agoUse dropdown in my account -> "my library"
Chocobozzz [Wed, 5 Sep 2018 12:42:59 +0000 (14:42 +0200)]
Use dropdown in my account -> "my library"

6 years agoFix channels search on mobile
Chocobozzz [Wed, 5 Sep 2018 09:42:13 +0000 (11:42 +0200)]
Fix channels search on mobile

6 years agoFix video add background color
Chocobozzz [Wed, 5 Sep 2018 09:24:43 +0000 (11:24 +0200)]
Fix video add background color

6 years agoFix watch page responsive
Chocobozzz [Wed, 5 Sep 2018 09:20:44 +0000 (11:20 +0200)]
Fix watch page responsive

6 years agoFix menu on mobile
Chocobozzz [Wed, 5 Sep 2018 08:19:45 +0000 (10:19 +0200)]
Fix menu on mobile

6 years agohotkey to toggle dark theme
Rigel Kent [Tue, 4 Sep 2018 21:14:31 +0000 (23:14 +0200)]
hotkey to toggle dark theme

6 years agoadd theming via css custom properties
Rigel Kent [Mon, 3 Sep 2018 23:28:04 +0000 (01:28 +0200)]
add theming via css custom properties

and a bonus dark color theme toggle

6 years agofixing grid readjustment with expand and screens < 1150px
Rigel Kent [Tue, 4 Sep 2018 16:35:39 +0000 (18:35 +0200)]
fixing grid readjustment with expand and screens < 1150px

6 years agoFix overview page on mobile
Chocobozzz [Tue, 4 Sep 2018 15:30:57 +0000 (17:30 +0200)]
Fix overview page on mobile

6 years agoTry to improve remote tools explanation
Chocobozzz [Tue, 4 Sep 2018 15:14:11 +0000 (17:14 +0200)]
Try to improve remote tools explanation

6 years agoFix search results on mobile
Chocobozzz [Tue, 4 Sep 2018 14:58:21 +0000 (16:58 +0200)]
Fix search results on mobile

6 years agoBetter label for video privacies
Chocobozzz [Tue, 4 Sep 2018 14:21:07 +0000 (16:21 +0200)]
Better label for video privacies

6 years agoMaking password change erroring more friendly
Jorropo [Tue, 4 Sep 2018 14:34:01 +0000 (16:34 +0200)]
Making password change erroring more friendly

If you leave the form but the 2 password is different a big red
boxappears to warn you (no need to click on the button).The submit
buttonis desactivated if the 2 password isn't the same.

6 years agoMove nodeinfo model in shared/
Chocobozzz [Tue, 4 Sep 2018 13:34:11 +0000 (15:34 +0200)]
Move nodeinfo model in shared/

6 years agocheck 'trending.videos.interval_days' config key
Chocobozzz [Tue, 4 Sep 2018 13:31:13 +0000 (15:31 +0200)]
check 'trending.videos.interval_days' config key

6 years agoAdd overview videos to homepage options
Chocobozzz [Tue, 4 Sep 2018 13:28:50 +0000 (15:28 +0200)]
Add overview videos to homepage options

6 years agoAdd index to startDate in video view table
Chocobozzz [Tue, 4 Sep 2018 13:25:02 +0000 (15:25 +0200)]
Add index to startDate in video view table

6 years agoDo not import live streaming
Chocobozzz [Tue, 4 Sep 2018 09:55:43 +0000 (11:55 +0200)]
Do not import live streaming

6 years agoFix video import with URL with small titles
Chocobozzz [Tue, 4 Sep 2018 09:34:46 +0000 (11:34 +0200)]
Fix video import with URL with small titles

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