Fix reply failures caused by fetching posts from PDS (#9925)

This commit is contained in:
Samuel Newman
2026-05-15 19:43:07 +01:00
committed by GitHub
parent e0cb1c3413
commit 9d98890fd2
2 changed files with 38 additions and 15 deletions
+4 -1
View File
@@ -948,7 +948,10 @@ export const ComposePost = ({
})
let err = cleanError(e.message)
if (err.includes('not locate record')) {
if (
e instanceof apilib.ReplyDeletedError ||
err.includes('not locate record')
) {
err = l`We're sorry! The post you are replying to has been deleted.`
} else if (e instanceof EmbeddingDisabledError) {
err = l`This post's author has disabled quote posts.`