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

@@ -351,6 +351,9 @@ class XmppPlugin extends ImPlugin
$xs->text(sprintf(' => %s', $orig_profile->nickname));
} catch (NoParentNoticeException $e) {
$xs->text(": ");
} catch (NoResultException $e) {
// Parent notice was probably deleted.
$xs->text(": ");
}
if (!empty($notice->rendered)) {
$notice->rendered = str_replace("\t", "", $notice->rendered);