mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Revert web change
This commit is contained in:
parent
ca0f58ee22
commit
0b0100f0e5
1 changed files with 6 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ import { Label } from '../../../lib/networking/fragments/labelFragment'
|
|||
import { isVipUser } from '../../../lib/featureFlag'
|
||||
import { EmptyLibrary } from './EmptyLibrary'
|
||||
import TopBarProgress from 'react-topbar-progress-indicator'
|
||||
import { State } from '../../../lib/networking/fragments/articleFragment'
|
||||
|
||||
export type LayoutType = 'LIST_LAYOUT' | 'GRID_LAYOUT'
|
||||
|
||||
|
|
@ -258,7 +259,11 @@ export function HomeFeedContainer(props: HomeFeedContainerProps): JSX.Element {
|
|||
const username = viewerData?.me?.profile.username
|
||||
if (username) {
|
||||
setActiveCardId(item.node.id)
|
||||
router.push(`/${username}/${item.node.id}`)
|
||||
if (item.node.state === State.PROCESSING) {
|
||||
router.push(`/${username}/links/${item.node.id}`)
|
||||
} else {
|
||||
router.push(`/${username}/${item.node.slug}`)
|
||||
}
|
||||
}
|
||||
break
|
||||
case 'showOriginal':
|
||||
|
|
|
|||
Loading…
Reference in a new issue