about summary refs log tree commit diff
path: root/src/view/screens/PostRepostedBy.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/screens/PostRepostedBy.tsx')
-rw-r--r--src/view/screens/PostRepostedBy.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/screens/PostRepostedBy.tsx b/src/view/screens/PostRepostedBy.tsx
index 1a63445e5..19f0af18b 100644
--- a/src/view/screens/PostRepostedBy.tsx
+++ b/src/view/screens/PostRepostedBy.tsx
@@ -1,6 +1,7 @@
 import React from 'react'
 import {View} from 'react-native'
 import {useFocusEffect} from '@react-navigation/native'
+import {withAuthRequired} from 'view/com/auth/withAuthRequired'
 import {NativeStackScreenProps, CommonNavigatorParams} from 'lib/routes/types'
 import {ViewHeader} from '../com/util/ViewHeader'
 import {PostRepostedBy as PostRepostedByComponent} from '../com/post-thread/PostRepostedBy'
@@ -8,7 +9,7 @@ import {useStores} from 'state/index'
 import {makeRecordUri} from 'lib/strings/url-helpers'
 
 type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostRepostedBy'>
-export const PostRepostedByScreen = ({route}: Props) => {
+export const PostRepostedByScreen = withAuthRequired(({route}: Props) => {
   const store = useStores()
   const {name, rkey} = route.params
   const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey)
@@ -25,4 +26,4 @@ export const PostRepostedByScreen = ({route}: Props) => {
       <PostRepostedByComponent uri={uri} />
     </View>
   )
-}
+})