Don't save reply info for repeats

This commit is contained in:
Evan Prodromou 2010-01-13 01:13:06 -08:00
parent 8bfa7fdeaf
commit 43ff542189
1 changed files with 6 additions and 1 deletions

View File

@ -275,7 +275,6 @@ class Notice extends Memcached_DataObject
if (isset($repeat_of)) { if (isset($repeat_of)) {
$notice->repeat_of = $repeat_of; $notice->repeat_of = $repeat_of;
$notice->reply_to = $repeat_of;
} else { } else {
$notice->reply_to = self::getReplyTo($reply_to, $profile_id, $source, $final); $notice->reply_to = self::getReplyTo($reply_to, $profile_id, $source, $final);
} }
@ -995,6 +994,12 @@ class Notice extends Memcached_DataObject
*/ */
function saveReplies() function saveReplies()
{ {
// Don't save reply data for repeats
if (!empty($this->repeat_of)) {
return array();
}
// Alternative reply format // Alternative reply format
$tname = false; $tname = false;
if (preg_match('/^T ([A-Z0-9]{1,64}) /', $this->content, $match)) { if (preg_match('/^T ([A-Z0-9]{1,64}) /', $this->content, $match)) {