don't allow lbry-first tag to be added manually
This commit is contained in:
parent
2f1e126551
commit
38b26f0bfc
1 changed files with 3 additions and 0 deletions
|
@ -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))
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue