Fix "channel levels" being applied to all MarkdownPreview usages.
`stakedLevel` is only provided when needed (comments, etc.), so when it's null, resume normal operation.
This commit is contained in:
parent
3bab4feeca
commit
20a28865fe
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ const REPLACE_REGEX = /(<iframe\s+src=["'])(.*?(?=))(["']\s*><\/iframe>)/g;
|
||||||
// ****************************************************************************
|
// ****************************************************************************
|
||||||
|
|
||||||
function isStakeEnoughForPreview(stakedLevel) {
|
function isStakeEnoughForPreview(stakedLevel) {
|
||||||
return stakedLevel && stakedLevel >= CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS;
|
return !stakedLevel || stakedLevel >= CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ****************************************************************************
|
// ****************************************************************************
|
||||||
|
|
Loading…
Reference in a new issue