mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Redirect to slug page
This commit is contained in:
parent
80d0146f72
commit
329efacbe5
1 changed files with 1 additions and 10 deletions
|
|
@ -40,7 +40,6 @@ 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'
|
||||
|
||||
|
|
@ -259,15 +258,7 @@ export function HomeFeedContainer(props: HomeFeedContainerProps): JSX.Element {
|
|||
const username = viewerData?.me?.profile.username
|
||||
if (username) {
|
||||
setActiveCardId(item.node.id)
|
||||
if (
|
||||
item.node.state === State.PROCESSING &&
|
||||
new Date(item.node.createdAt).getTime() >=
|
||||
new Date().getTime() - 1000 * 30
|
||||
) {
|
||||
router.push(`/${username}/links/${item.node.id}`)
|
||||
} else {
|
||||
router.push(`/${username}/${item.node.slug}`)
|
||||
}
|
||||
router.push(`/${username}/${item.node.slug}`)
|
||||
}
|
||||
break
|
||||
case 'showOriginal':
|
||||
|
|
|
|||
Loading…
Reference in a new issue