diff --git a/backend/following.json b/backend/following.json index 6e2c9fa..5f2c9a3 100644 --- a/backend/following.json +++ b/backend/following.json @@ -1,3 +1,4 @@ [ - "nhythanh_04" + "nhythanh_04", + "po.trann77" ] \ No newline at end of file diff --git a/frontend/src/components/Feed.tsx b/frontend/src/components/Feed.tsx index d4e3188..9e5873e 100644 --- a/frontend/src/components/Feed.tsx +++ b/frontend/src/components/Feed.tsx @@ -1090,12 +1090,28 @@ export const Feed: React.FC = () => { )} - +
+ {/* Play All Button */} + + +
{/* Video Grid */} @@ -1109,9 +1125,15 @@ export const Feed: React.FC = () => { }`} onClick={() => { if (!video.url) return; - setVideos(prev => [video, ...prev.filter(v => v.id !== video.id)]); - setCurrentIndex(0); - setActiveTab('foryou'); + // Load ALL search results into the feed, starting from clicked video + const playableVideos = searchResults.filter(v => v.url); + if (playableVideos.length > 0) { + setVideos(playableVideos); + // Set current index to the clicked video's position in playable videos + const newIndex = playableVideos.findIndex(v => v.id === video.id); + setCurrentIndex(newIndex >= 0 ? newIndex : 0); + setActiveTab('foryou'); + } }} > {/* Thumbnail with loading placeholder */}