fix: small fix to directly linked stories

This commit is contained in:
Snazzah 2024-05-12 22:21:14 -05:00
parent 4b4adc4e8b
commit 5c11beb8a3
No known key found for this signature in database
GPG Key ID: EA479766A94CEB61

View File

@ -48,7 +48,7 @@ export default async function(obj) {
const data = JSON.parse(nextDataString);
const storyId = data.query.profileParams[1];
if (storyId) {
if (storyId && data.props.pageProps.story) {
const story = data.props.pageProps.story.snapList.find((snap) => snap.snapId.value === storyId);
if (story) {
if (story.snapMediaType === 0)