diff --git a/src/view/com/notifications/FeedItem.tsx b/src/view/com/notifications/FeedItem.tsx
index 7b07bb30..3e0d9f5c 100644
--- a/src/view/com/notifications/FeedItem.tsx
+++ b/src/view/com/notifications/FeedItem.tsx
@@ -122,7 +122,7 @@ export const FeedItem = observer(function ({
}
if (item.isReply || item.isMention || item.isQuote) {
- if (item.additionalPost?.error) {
+ if (!item.additionalPost || item.additionalPost?.error) {
// hide errors - it doesnt help the user to show them
return
}
@@ -134,8 +134,7 @@ export const FeedItem = observer(function ({
noFeedback
accessible={false}>
}) {
const pal = usePalette('default')
- const store = useStores()
- const [view, setView] = useState(initView)
const [deleted, setDeleted] = useState(false)
- useEffect(() => {
- if (initView || view?.params.uri === uri) {
- if (initView !== view) {
- setView(initView)
- }
- return
- }
- const newView = new PostThreadModel(store, {uri, depth: 0})
- setView(newView)
- newView.setup().catch(err => store.log.error('Failed to fetch post', err))
- }, [initView, setView, uri, view, view?.params.uri, store])
-
// deleted
// =
if (deleted) {
@@ -69,11 +53,7 @@ export const Post = observer(function Post({
// loading
// =
- if (
- !view ||
- (!view.hasContent && view.isLoading) ||
- view.params.uri !== uri
- ) {
+ if (!view.hasContent && view.isLoading) {
return (
diff --git a/src/view/com/search/SearchResults.tsx b/src/view/com/search/SearchResults.tsx
index bf623d93..98427770 100644
--- a/src/view/com/search/SearchResults.tsx
+++ b/src/view/com/search/SearchResults.tsx
@@ -72,12 +72,7 @@ const PostResults = observer(({model}: {model: SearchUIModel}) => {
return (
{model.posts.map(post => (
-
+
))}