diff --git a/helpers/app-derived.js b/helpers/app-derived.js index 8ed7ec0..5a3d5f9 100644 --- a/helpers/app-derived.js +++ b/helpers/app-derived.js @@ -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