correctly check for local notice to status mappings when notice originated here
This commit is contained in:
parent
df88624d49
commit
e20dc9fec3
@ -301,8 +301,11 @@ class TwitterStatusFetcher extends ParallelizingDaemon
|
||||
|
||||
if (!empty($status->in_reply_to_status_id)) {
|
||||
common_log(LOG_INFO, "Status {$status->id} is a reply to status {$status->in_reply_to_status_id}");
|
||||
$replyUri = $this->makeStatusURI($status->in_reply_to_screen_name, $status->in_reply_to_status_id);
|
||||
$reply = Notice::staticGet('uri', $replyUri);
|
||||
$n2s = Notice_to_status::staticGet('status_id', $status->in_reply_to_status_id);
|
||||
if (empty($n2s)) {
|
||||
common_log(LOG_INFO, "Couldn't find local notice for status {$status->in_reply_to_status_id}");
|
||||
} else {
|
||||
$reply = Notice::staticGet('id', $n2s->notice_id);
|
||||
if (empty($reply)) {
|
||||
common_log(LOG_INFO, "Couldn't find local notice for status {$status->in_reply_to_status_id}");
|
||||
} else {
|
||||
@ -311,6 +314,7 @@ class TwitterStatusFetcher extends ParallelizingDaemon
|
||||
$notice->conversation = $reply->conversation;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (empty($notice->conversation)) {
|
||||
$conv = Conversation::create();
|
||||
|
Loading…
Reference in New Issue
Block a user