aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/users.ts
Commit message (Collapse)AuthorAgeFilesLines
* Add Podcast RSS feeds (#5487)Alecks Gates2023-05-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial test implementation of Podcast RSS This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option. I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort. * Update to pfeed-podcast 1.2.2 * Initial test implementation of Podcast RSS This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option. I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort. * Update to pfeed-podcast 1.2.2 * Initial test implementation of Podcast RSS This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option. I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort. * Update to pfeed-podcast 1.2.2 * Add correct feed image to RSS channel * Prefer HLS videos for podcast RSS Remove video/stream titles, add optional height attribute to podcast RSS * Prefix podcast RSS images with root server URL * Add optional video query support to include captions * Add transcripts & person images to podcast RSS feed * Prefer webseed/webtorrent files over HLS fragmented mp4s * Experimentally adding podcast fields to basic config page * Add validation for new basic config fields * Don't include "content" in podcast feed, use full description for "description" * Initial test implementation of Podcast RSS This is a pretty simple implementation to add support for The Podcast Namespace in RSS -- instead of affecting the existing RSS implementation, this adds a new UI option. I attempted to retain compatibility with the rest of the RSS feed implementation as much as possible and have created a temporary fork of the "pfeed" library to support this effort. * Update to pfeed-podcast 1.2.2 * Add correct feed image to RSS channel * Prefer HLS videos for podcast RSS Remove video/stream titles, add optional height attribute to podcast RSS * Prefix podcast RSS images with root server URL * Add optional video query support to include captions * Add transcripts & person images to podcast RSS feed * Prefer webseed/webtorrent files over HLS fragmented mp4s * Experimentally adding podcast fields to basic config page * Add validation for new basic config fields * Don't include "content" in podcast feed, use full description for "description" * Add medium/socialInteract to podcast RSS feeds. Use HTML for description * Change base production image to bullseye, install prosody in image * Add liveItem and trackers to Podcast RSS feeds Remove height from alternateEnclosure, replaced with title. * Clear Podcast RSS feed cache when live streams start/end * Upgrade to Node 16 * Refactor clearCacheRoute to use ApiCache * Remove unnecessary type hint * Update dockerfile to node 16, install python-is-python2 * Use new file paths for captions/playlists * Fix legacy videos in RSS after migration to object storage * Improve method of identifying non-fragmented mp4s in podcast RSS feeds * Don't include fragmented MP4s in podcast RSS feeds * Add experimental support for podcast:categories on the podcast RSS item * Fix undefined category when no videos exist Allows for empty feeds to exist (important for feeds that might only go live) * Add support for podcast:locked -- user has to opt in to show their email * Use comma for podcast:categories delimiter * Make cache clearing async * Fix merge, temporarily test with pfeed-podcast * Syntax changes * Add EXT_MIMETYPE constants for captions * Update & fix tests, fix enclosure mimetypes, remove admin email * Add test for podacst:socialInteract * Add filters hooks for podcast customTags * Remove showdown, updated to pfeed-podcast 6.1.2 * Add 'action:api.live-video.state.updated' hook * Avoid assigning undefined category to podcast feeds * Remove nvmrc * Remove comment * Remove unused podcast config * Remove more unused podcast config * Fix MChannelAccountDefault type hint missed in merge * Remove extra line * Re-add newline in config * Fix lint errors for isEmailPublic * Fix thumbnails in podcast feeds * Requested changes based on review * Provide podcast rss 2.0 only on video channels * Misc cleanup for a less messy PR * Lint fixes * Remove pfeed-podcast * Add peertube version to new hooks * Don't use query include, remove TODO * Remove film medium hack * Clear podcast rss cache before video/channel update hooks * Clear podcast rss cache before video uploaded/deleted hooks * Refactor podcast feed cache clearing * Set correct person name from video channel * Styling * Fix tests --------- Co-authored-by: Chocobozzz <me@florianbigard.com>
* Prefer using Object.valuesChocobozzz2022-08-171-3/+2
|
* Use same mastodon regex for usernamesChocobozzz2022-08-031-3/+3
|
* Resolve enums at compile timeChocobozzz2021-12-281-1/+1
|
* Fix shared importsChocobozzz2021-12-241-1/+1
|
* Add ability for admins to set default p2p policyChocobozzz2021-12-161-2/+2
|
* Allow accounts to skip account setup modalChocobozzz2021-08-271-7/+2
|
* Add banner testsChocobozzz2021-04-081-11/+2
|
* Add banners supportChocobozzz2021-04-081-4/+4
|
* Update dependenciesChocobozzz2020-02-281-1/+1
|
* Refactor email enabled functionChocobozzz2020-02-171-4/+3
|
* Creating a user with an empty password will send an email to let him set his ↵John Livingston2020-02-171-0/+10
| | | | | | | | | | | | | | | | password (#2479) * Creating a user with an empty password will send an email to let him set his password * Consideration of Chocobozzz's comments * Tips for optional password * API documentation * Fix circular imports * Tests
* Update validator dependencyChocobozzz2020-01-071-1/+1
|
* autoplay next video support for playlistsRigel Kent2019-12-131-0/+5
|
* Autoplay next recommended video (#2137)LoveIsGrief2019-09-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | * Start working on autoplay of next video * Ignore changes made by gitpod * Apply changes from PR#1370 * Correct the spelling of recommendations * Fix linting errors * Move boolean check to existing onEnded handler * Pick a random video until the recommendations are improved * Add simple tests for autoPlayNextVideo * Fix lint ...again
* Add welcome modalChocobozzz2019-09-051-0/+10
|
* Fix express validatorChocobozzz2019-07-251-1/+0
|
* Add language filters in user preferencesChocobozzz2019-06-191-1/+6
|
* Fix optional privacy in upload endpointChocobozzz2019-04-251-3/+2
|
* Add user adminFlagsChocobozzz2019-04-151-1/+7
|
* Don't expose constants directly in initializers/Chocobozzz2019-04-111-1/+1
|
* Add history on server sideChocobozzz2018-12-181-0/+5
| | | | Add ability to disable, clear and list user videos history
* move to boolean switchRigel Kent2018-10-131-5/+4
|
* add webtorrent opt-out settingsRigel Kent2018-10-131-1/+7
| | | | | - add a key in localstorage to remember the opt-out - add a user setting
* add user account email verificiation (#977)Josh Morel2018-08-311-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Implement daily upload limit (#956)Felix Ableitner2018-08-281-0/+5
| | | | | | | | | | | | | | | | | | | | * 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
* Add reason when banning a userChocobozzz2018-08-081-0/+5
|
* Implement user blocking on server sideChocobozzz2018-08-081-6/+7
|
* Fix images size limitChocobozzz2018-06-221-2/+1
|
* Add ability to update the user display name/descriptionChocobozzz2018-04-261-0/+5
|
* Add ability to choose what policy we have for NSFW videosChocobozzz2018-04-191-4/+6
| | | | There is a global instance setting and a per user setting
* Implement support field in video and video channelChocobozzz2018-02-151-0/+5
|
* Add ability to set video thumbnail/previewChocobozzz2018-02-141-17/+9
|
* Begin to add avatar to actorsChocobozzz2017-12-291-2/+19
|
* Enh #106 : Add an autoPlayVideo user attribute (#159)Andréas Livet2017-12-191-2/+11
| | | | | | | | | Warning : I was not able to run the tests on my machine. It uses a different approach to handle databse connexion and didn't find where to configure it... - create a migration file to add a boolean column in user table - add autoPlayVideo attribute everywhere it is needed (both on client and server side) - add tests - add a way to configure this attribute in account-settings - use the attribute in video-watch component to actually autoplay or not the video
* Usernames are case insensitive nowChocobozzz2017-11-041-1/+1
|
* Support roles with rights and add moderator roleChocobozzz2017-10-271-6/+5
|
* Upgrade express validator to v4Chocobozzz2017-09-151-10/+0
|
* Add tests for npm run scriptsChocobozzz2017-09-071-0/+1
|
* Begin user quotaChocobozzz2017-09-041-1/+7
|
* Upgrade common server dependenciesChocobozzz2017-08-251-8/+6
|
* Create types for model enumsChocobozzz2017-06-161-1/+3
|
* Type functionsChocobozzz2017-06-101-6/+18
|
* require -> importChocobozzz2017-06-051-3/+1
|
* First typescript iterationChocobozzz2017-05-201-0/+34