Add hasStory helper

This commit is contained in:
Sam Carlton 2021-03-13 20:54:52 -06:00
parent 27057c2a2f
commit d66cf8e3a9

View file

@ -5,6 +5,10 @@ export function isVideo ( app ) {
return app.hasOwnProperty('thumbnail') && app.hasOwnProperty('timestamps')
}
export function hasStory ( app ) {
return app.lastUpdated !== null && getAppType( app ) === 'app' && app.text.includes('✅')
}
export function getAppType ( app ) {
// Videos don't have a category