NoResultException is common if reply_to was not cleared on parent deletion

This commit is contained in:
Mikael Nordfeldth
2015-09-30 22:55:06 +02:00
parent a09cf51b99
commit 3a6c98ff16
5 changed files with 17 additions and 2 deletions

View File

@@ -725,6 +725,8 @@ function common_find_mentions($text, Notice $notice)
}
} catch (NoParentNoticeException $e) {
// It wasn't a reply to anything, so we can't harvest nickname-relations.
} catch (NoResultException $e) {
// The parent notice was deleted.
}
$matches = common_find_mentions_raw($text);