1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Audit - another partial fix to commit re-parsing bug

Summary: Ref T6350. We build $sql based on whose subscribed. If no one is subscribed, then we have no query to run.

Test Plan: observed one error disappearing from my daemon log. Also, more doing it live.

Reviewers: epriestley, chad

Reviewed By: chad

Subscribers: Korvin, epriestley

Maniphest Tasks: T6350

Differential Revision: https://secure.phabricator.com/D10731
This commit is contained in:
Bob Trahan 2014-10-20 17:39:19 -07:00
parent ec82ad2d16
commit d248bc47cf

View file

@ -164,12 +164,15 @@ final class PhabricatorFeedStoryPublisher {
$mark_read); $mark_read);
} }
queryfx( if ($sql) {
$conn, queryfx(
'INSERT INTO %T (primaryObjectPHID, userPHID, chronologicalKey, hasViewed) $conn,
VALUES %Q', 'INSERT INTO %T '.
$notif->getTableName(), '(primaryObjectPHID, userPHID, chronologicalKey, hasViewed) '.
implode(', ', $sql)); 'VALUES %Q',
$notif->getTableName(),
implode(', ', $sql));
}
} }
private function sendNotification($chrono_key, array $subscribed_phids) { private function sendNotification($chrono_key, array $subscribed_phids) {