mirror of
https://github.com/Qortal/q-tube.git
synced 2025-02-11 17:55:51 +00:00
Merge pull request #8 from lgedgar/prevent-xuser-post
Hide video search results if metadata and video owner do not match
This commit is contained in:
commit
5e5f19053f
@ -554,6 +554,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…
x
Reference in New Issue
Block a user