-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
Component: PeerTube Plugin 📦Features that can be developed in a plugin, but require PeerTube plugin API developmentFeatures that can be developed in a plugin, but require PeerTube plugin API developmentType: Feature Request ✨
Description
Describe the current behavior
Since version 8.0.0 peertubeHelpers.getUser() only returns partial user data (from local storage) when called upon page load.
Steps to reproduce
- Call
peertubeHelpers.getUser()in a pluginsregisterfunction. - Read the data.
- Call
peertubeHelpers.getUser()again when all HTTP requests are done. - Read the data and see the difference.
Describe the expected behavior
peertubeHelpers.getUser() should always return the same data to avoid unexpected behavior due to race conditions.
Additional information
-
PeerTube instance:
- URL:
- Version: 8.0.1
- NodeJS version:
- Ffmpeg version:
-
Browser name, version and platforms on which you could reproduce the bug:
-
Link to browser console log if relevant:
-
Link to server log if relevant (
journalctlor/var/www/peertube/storage/logs/):
Metadata
Metadata
Assignees
Labels
Component: PeerTube Plugin 📦Features that can be developed in a plugin, but require PeerTube plugin API developmentFeatures that can be developed in a plugin, but require PeerTube plugin API developmentType: Feature Request ✨