Browse Source

Hide video search results if metadata and video owner do not match

pull/8/head
Lance Edgar 8 months ago
parent
commit
b709efd072
  1. 7
      src/pages/Home/VideoList.tsx

7
src/pages/Home/VideoList.tsx

@ -553,6 +553,13 @@ export const VideoList = ({ mode }: VideoListProps) => {
avatarUrl = userAvatarHash[videoObj?.user];
}
// nb. this prevents showing metadata for a video which
// belongs to a different user
if (videoObj?.user && videoObj?.videoReference?.name
&& videoObj.user != videoObj.videoReference.name) {
return null;
}
if (hasHash && !videoObj?.videoImage && !videoObj?.image) {
return null;
}

Loading…
Cancel
Save