1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00
Commit graph

295 commits

Author SHA1 Message Date
Chocobozzz
a5c087d3d4
Reapply "Upgrade webfinger lib to 2.8.1"
This reverts commit 04245f9dc1.
2025-07-31 10:10:59 +02:00
Chocobozzz
04245f9dc1
Revert "Upgrade webfinger lib to 2.8.1"
This reverts commit 1967546cab.
Another bug that must be fixed first: https://github.com/silverbucket/webfinger.js/issues/116
2025-07-30 14:25:35 +02:00
Chocobozzz
1967546cab
Upgrade webfinger lib to 2.8.1 2025-07-30 11:49:00 +02:00
Chocobozzz
94802f3175
Update dependencies 2025-07-29 11:48:19 +02:00
Chocobozzz
d6e4dac032
Add email translations
Convert emails from Pug template to Handlebars because i18next doesn't
support Pug
2025-07-24 09:18:04 +02:00
Chocobozzz
d8368b86e6
Upgrade multer 2025-07-22 08:39:21 +02:00
Chocobozzz
e0b7cf6592
Remove deprecated non standard DNT support 2025-06-17 08:14:15 +02:00
Chocobozzz
a8df4ccbbe
Upgrade multer 2025-06-10 09:44:34 +02:00
Chocobozzz
96a9b5cc90
Fix ERR_REQUIRE_ESM error 2025-05-28 06:55:01 +02:00
Chocobozzz
d2706f6711
Fix multer vulnerability 2025-05-26 08:37:53 +02:00
Chocobozzz
92e4492c48
Update server dependencies 2025-05-09 15:45:03 +02:00
Chocobozzz
034e1bf328
Migrate eslint to v9 2025-05-07 15:49:23 +02:00
kontrollanten
a7be820abc
add user agent video stats (#6871)
* add user agent video stats

closes #6832

* Disable indexes, support start/end dates

* move ua parsing to client

* Openapi, inline body request, update tests

---------

Co-authored-by: Chocobozzz <me@florianbigard.com>
2025-04-07 10:29:59 +02:00
kontrollanten
75d7c2a9dc
add filter:email.template-path.result / filter:email.subject.result (#6876)
* add filter:email.template-path.result / filter:email.subject.result

closes #3392

* Remove juice

* Kill mock server

---------

Co-authored-by: Chocobozzz <me@florianbigard.com>
2025-04-02 15:16:29 +02:00
Chocobozzz
b295dd5820
Redesign manage my videos
* Use a table to list my videos for a clearer overview and so it's
   easier to add bulk actions in the future
 * Use a "Manage" video page with a proper URL navigation
 * Add "Stats" and "Studio" in this "Manage" page
2025-04-02 10:49:25 +02:00
Chocobozzz
b28b7812aa
Upgrade feed package 2025-03-04 14:19:12 +01:00
Chocobozzz
9e08407aa2
Update feed dependency 2025-02-21 14:52:26 +01:00
Chocobozzz
1579d8ce1e
Improve podcast feed 2025-02-18 13:47:58 +01:00
Chocobozzz
bdcc626347
Update server dependencies 2025-02-17 11:35:48 +01:00
Chocobozzz
c88cb21663
Improve podcast feed 2025-02-17 11:10:46 +01:00
Chocobozzz
cfd8c3c40e
Update server dependencies
Breaking: rename parse-log script option `-nt` to `-n`
2025-02-03 10:19:11 +01:00
Chocobozzz
05f105d03f
Remove web video redundancy support
It's not used anymore in the player since several major versions now, so
there's no point in continuing to store these video files
2025-01-31 11:13:13 +01:00
Chocobozzz
b6eb8de3a0
Fix requests on node 20 2025-01-15 14:15:50 +01:00
Chocobozzz
9bacc48643
Add masto verification link support 2025-01-09 10:29:17 +01:00
Chocobozzz
3fafcb15a1
Fix TLS crash with HTTP proxy 2024-12-23 09:16:48 +01:00
Chocobozzz
804171860e
Server dep maintenance upgrade 2024-11-25 10:04:59 +01:00
Chocobozzz
c3544d80b5
Fix ERR_BUFFER_OUT_OF_BOUNDS on some node version 2024-11-25 09:15:35 +01:00
Chocobozzz
e3d4fd6500
Upgrade express dependency
To fix vulnerabilities
2024-09-13 09:02:49 +02:00
Chocobozzz
c255ea92cf
Update server dependencies 2024-08-16 14:27:49 +02:00
Chocobozzz
d24d221550
Add SSRF protection 2024-08-14 15:33:57 +02:00
Chocobozzz
90859f2b61
Reduce peertube types package size 2024-08-13 09:38:35 +02:00
Chocobozzz
f7ec8401c5
Revert webtorrent version to avoid native dep
Causes issues on some system:
 * https://github.com/Chocobozzz/PeerTube/issues/6518
 * https://github.com/Chocobozzz/PeerTube/issues/6486
 * https://github.com/Chocobozzz/PeerTube/issues/6502
2024-07-31 15:05:36 +02:00
Chocobozzz
9ee467b9cd
Better whisper logging 2024-07-02 09:01:54 +02:00
Chocobozzz
a722194809
Update server dependencies 2024-06-21 14:39:50 +02:00
Chocobozzz
29329d6c45 Implement auto tag on comments and videos
* Comments and videos can be automatically tagged using core rules or
   watched word lists
 * These tags can be used to automatically filter videos and comments
 * Introduce a new video comment policy where comments must be approved
   first
 * Comments may have to be approved if the user auto block them using
   core rules or watched word lists
 * Implement FEP-5624 to federate reply control policies
2024-05-29 15:03:14 +02:00
Chocobozzz
712f7d18e6
Update superagent
To fix vulnerability of formidable
2024-04-25 11:01:10 +02:00
Chocobozzz
c67dfb979b
Support itunes:owner in podcast feed 2024-04-11 09:32:57 +02:00
Chocobozzz
7163a1a044
Fix self link in atom feed 2024-04-05 08:50:38 +02:00
Chocobozzz
c8d1f0d9c5
Remove unused dependencies 2024-02-29 14:20:28 +01:00
Chocobozzz
db06d13c67
Fix typescript tests 2024-02-23 08:33:01 +01:00
Chocobozzz
6eda5c36f4
Update server dependencies 2024-02-21 16:23:31 +01:00
Chocobozzz
8573e5a80a Implement user import/export in server 2024-02-21 13:49:08 +01:00
Chocobozzz
c900788e59
Remove async-lru cache for jsonld
jsonld library has already a cache
2023-11-29 06:51:29 +01:00
Chocobozzz
44e12dc809
Update bullmq dependency 2023-10-12 09:29:45 +02:00
Chocobozzz
2db1f3238d
Update server dependencies 2023-10-11 11:06:34 +02:00
Chocobozzz
d2640682f6
Fix atom feed with science and technology category 2023-09-01 10:09:10 +02:00
Chocobozzz
3a4992633e
Migrate server to ESM
Sorry for the very big commit that may lead to git log issues and merge
conflicts, but it's a major step forward:

 * Server can be faster at startup because imports() are async and we can
   easily lazy import big modules
 * Angular doesn't seem to support ES import (with .js extension), so we
   had to correctly organize peertube into a monorepo:
    * Use yarn workspace feature
    * Use typescript reference projects for dependencies
    * Shared projects have been moved into "packages", each one is now a
      node module (with a dedicated package.json/tsconfig.json)
    * server/tools have been moved into apps/ and is now a dedicated app
      bundled and published on NPM so users don't have to build peertube
      cli tools manually
    * server/tests have been moved into packages/ so we don't compile
      them every time we want to run the server
 * Use isolatedModule option:
   * Had to move from const enum to const
     (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums)
   * Had to explictely specify "type" imports when used in decorators
 * Prefer tsx (that uses esbuild under the hood) instead of ts-node to
   load typescript files (tests with mocha or scripts):
     * To reduce test complexity as esbuild doesn't support decorator
       metadata, we only test server files that do not import server
       models
     * We still build tests files into js files for a faster CI
 * Remove unmaintained peertube CLI import script
 * Removed some barrels to speed up execution (less imports)
2023-08-11 15:02:33 +02:00
Chocobozzz
881958d179
Correctly download files from S3
Use pre signed URLs to inject content disposition header
2023-06-29 10:18:21 +02:00
Chocobozzz
83002a8234
Update server dependencies 2023-05-22 17:11:31 +02:00
Alecks Gates
cb0eda5602
Add Podcast RSS feeds (#5487)
* 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>
2023-05-22 16:00:05 +02:00