Only Set reply details if there is something to reply to
darcs-hash:20080722082724-533db-ead12f037aa716dc548d6a4b04493ada5049ec96.gz
This commit is contained in:
parent
bdfe3ca524
commit
334b840c3e
@ -1009,10 +1009,12 @@ function common_save_replies($notice) {
|
|||||||
if ($i == 0 && ($recipient->id != $sender->id)) { # Don't save reply to self
|
if ($i == 0 && ($recipient->id != $sender->id)) { # Don't save reply to self
|
||||||
$reply_for = $recipient;
|
$reply_for = $recipient;
|
||||||
$recipient_notice = $reply_for->getCurrentNotice();
|
$recipient_notice = $reply_for->getCurrentNotice();
|
||||||
|
if ($recipient_notice) {
|
||||||
$orig = clone($notice);
|
$orig = clone($notice);
|
||||||
$notice->reply_to = $recipient_notice->id;
|
$notice->reply_to = $recipient_notice->id;
|
||||||
$notice->update($orig);
|
$notice->update($orig);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$reply = new Reply();
|
$reply = new Reply();
|
||||||
$reply->notice_id = $notice->id;
|
$reply->notice_id = $notice->id;
|
||||||
$reply->profile_id = $recipient->id;
|
$reply->profile_id = $recipient->id;
|
||||||
|
Loading…
Reference in New Issue
Block a user