don't allow lbry-first tag to be added manually

This commit is contained in:
Sean Yesmunt 2020-07-08 11:43:20 -04:00
parent 2f1e126551
commit 38b26f0bfc

View file

@ -23,6 +23,8 @@ type Props = {
limitShow?: number,
};
const UNALLOWED_TAGS = ['lbry-first'];
/*
We display tagsPassedIn
onClick gets the tag when a tag is clicked
@ -100,6 +102,7 @@ export default function TagsSearch(props: Props) {
.split(',')
.slice(0, limitSelect - countWithoutSpecialTags)
.map(newTag => newTag.trim().toLowerCase())
.filter(newTag => !UNALLOWED_TAGS.includes(newTag))
)
);