Remove ability for Post component to load from URI (close #1302) (#1317)

This commit is contained in:
Paul Frazee 2023-08-28 17:08:21 -07:00 committed by GitHub
parent c77fd588e9
commit e2f0770b88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 33 deletions

View file

@ -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 <View />
}
@ -134,8 +134,7 @@ export const FeedItem = observer(function ({
noFeedback
accessible={false}>
<Post
uri={item.uri}
initView={item.additionalPost}
view={item.additionalPost}
style={
item.isRead
? undefined