From ce83648f9da3a93018fc7845bec1d35c1519028d Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Fri, 22 Jul 2022 12:32:52 -0500
Subject: Add liked-by and reposted-by views

---
 src/view/screens/content/PostThread.tsx | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'src/view/screens/content/PostThread.tsx')

diff --git a/src/view/screens/content/PostThread.tsx b/src/view/screens/content/PostThread.tsx
index fde74e778..485a2e49a 100644
--- a/src/view/screens/content/PostThread.tsx
+++ b/src/view/screens/content/PostThread.tsx
@@ -1,7 +1,7 @@
 import React, {useLayoutEffect} from 'react'
 import {TouchableOpacity} from 'react-native'
 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
-import {AdxUri} from '@adxp/mock-api'
+import {makeRecordUri} from '../../lib/strings'
 import {Shell} from '../../shell'
 import type {RootTabsScreenProps} from '../../routes/types'
 import {PostThread as PostThreadComponent} from '../../com/post-thread/PostThread'
@@ -11,12 +11,7 @@ export const PostThread = ({
   route,
 }: RootTabsScreenProps<'PostThread'>) => {
   const {name, recordKey} = route.params
-
-  const urip = new AdxUri(`adx://todo/`)
-  urip.host = name
-  urip.collection = 'blueskyweb.xyz:Posts'
-  urip.recordKey = recordKey
-  const uri = urip.toString()
+  const uri = makeRecordUri(name, 'blueskyweb.xyz:Posts', recordKey)
 
   useLayoutEffect(() => {
     navigation.setOptions({
-- 
cgit 1.4.1

