Skip to content

Commit

Permalink
Fix DeArrow votes threshold too high (#4321)
Browse files Browse the repository at this point in the history
This was a mistake that I originally suggested. Unverified submissions will be at -1 votes and will still be ignored.
  • Loading branch information
ajayyy authored Nov 13, 2023
1 parent 5b332ec commit 1acdc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/ft-list-video/ft-list-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export default defineComponent({
const videoId = this.id
const data = await deArrowData(this.id)
const cacheData = { videoId, title: null }
if (Array.isArray(data?.titles) && data.titles.length > 0 && (data.titles[0].locked || data.titles[0].votes > 0)) {
if (Array.isArray(data?.titles) && data.titles.length > 0 && (data.titles[0].locked || data.titles[0].votes >= 0)) {
cacheData.title = data.titles[0].title
}

Expand Down

0 comments on commit 1acdc0a

Please sign in to comment.