mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 03:08:30 +00:00
fix: small fix to directly linked stories
This commit is contained in:
parent
4b4adc4e8b
commit
5c11beb8a3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user