]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - server/lib/views/shared/video-viewer-stats.ts
Improve viewer counter
authorChocobozzz <me@florianbigard.com>
Wed, 6 Apr 2022 06:50:43 +0000 (08:50 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Fri, 15 Apr 2022 07:49:35 +0000 (09:49 +0200)
commitac907dc7c158056e9b6a5cb58acd27df5c7c2670
treef9d8bff22e0543a305c64e1a1808c0df6d512f1e
parentdfbcefc20dc64f0814b1f2e8e782a4ea1bd24db2
Improve viewer counter

More precise, avoid weird decrease, reuse an id to federate viewers
17 files changed:
server/controllers/api/server/debug.ts
server/controllers/api/videos/view.ts
server/initializers/constants.ts
server/lib/activitypub/process/process-view.ts
server/lib/activitypub/send/send-view.ts
server/lib/activitypub/url.ts
server/lib/redis.ts
server/lib/views/shared/index.ts
server/lib/views/shared/video-viewer-counters.ts [new file with mode: 0644]
server/lib/views/shared/video-viewer-stats.ts [moved from server/lib/views/shared/video-viewers.ts with 62% similarity]
server/lib/views/shared/video-views.ts
server/lib/views/video-views-manager.ts
server/tests/api/check-params/views.ts
server/tests/api/views/video-views-counter.ts
server/tests/api/views/video-views-overall-stats.ts
server/tests/api/views/video-views-retention-stats.ts
server/tests/api/views/video-views-timeserie-stats.ts