Skip to content

Remove incorrect album_id filter from video theatre query#4904

Open
GaryJones wants to merge 1 commit intobuddyboss:releasefrom
GaryJones:fix/video-theatre-album-query
Open

Remove incorrect album_id filter from video theatre query#4904
GaryJones wants to merge 1 commit intobuddyboss:releasefrom
GaryJones:fix/video-theatre-album-query

Conversation

@GaryJones
Copy link
Copy Markdown

Problem

The video theatre AJAX handler in bp-templates/bp-nouveau/includes/video/ajax.php passes 'album_id' => 'existing-video' when querying for a specific video by its ID. The query layer interprets this non-numeric value as album_id = 0, which restricts results to videos that do not belong to any album.

This means that when a user clicks to view a video in theatre mode that is associated with an album, the query returns no results and playback fails silently.

Fix

Remove the album_id parameter from the query arguments. The query already filters by a specific video ID via the 'include' parameter, so the album_id restriction is redundant. Without it, videos are found regardless of whether they belong to an album or not.

Test plan

  • Upload a video to an album in a group or profile
  • Click the video to open it in theatre/lightbox mode — should play successfully
  • Verify that videos not in any album still play correctly in theatre mode
  • Verify that the theatre navigation (previous/next) works for album videos

The video theatre AJAX handler passes album_id => 'existing-video'
when querying for a specific video by ID. This value is interpreted
as album_id = 0 by the query, restricting results to videos that
do not belong to any album. Videos attached to an album are excluded,
breaking theatre playback for album-associated videos.

Since the query already filters by a specific video ID via the
'include' parameter, the album_id restriction is unnecessary and
counterproductive. Remove it so all videos are found regardless
of album association.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants