peertubeHelpers.getUser() should return full user object from /me response #6424

Open
opened 2026-02-22 12:53:46 -05:00 by deekerman · 1 comment
Owner

Originally created by @kontrollanten on GitHub (Jan 26, 2026).

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

  1. Call peertubeHelpers.getUser() in a plugins register function.
  2. Read the data.
  3. Call peertubeHelpers.getUser() again when all HTTP requests are done.
  4. 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 (journalctl or /var/www/peertube/storage/logs/):

Originally created by @kontrollanten on GitHub (Jan 26, 2026). ### 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 1. Call `peertubeHelpers.getUser()` in a plugins `register` function. 2. Read the data. 3. Call `peertubeHelpers.getUser()` again when all HTTP requests are done. 4. 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 (`journalctl` or `/var/www/peertube/storage/logs/`):
Author
Owner

@Chocobozzz commented on GitHub (Jan 27, 2026):

Hello,

We didn't change this helper behaviour since you introduced it. We can get the full information from the server but we would need to return a promise instead, and so we must create another API (getFullUser or something like that).

@Chocobozzz commented on GitHub (Jan 27, 2026): Hello, We didn't change this helper behaviour since you introduced it. We can get the full information from the server but we would need to return a promise instead, and so we must create another API (`getFullUser` or something like that).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PeerTube#6424
No description provided.