mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-31 08:58:20 +01: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:
parent
ec82ad2d16
commit
d248bc47cf
1 changed files with 9 additions and 6 deletions
|
@ -164,12 +164,15 @@ final class PhabricatorFeedStoryPublisher {
|
|||
$mark_read);
|
||||
}
|
||||
|
||||
queryfx(
|
||||
$conn,
|
||||
'INSERT INTO %T (primaryObjectPHID, userPHID, chronologicalKey, hasViewed)
|
||||
VALUES %Q',
|
||||
$notif->getTableName(),
|
||||
implode(', ', $sql));
|
||||
if ($sql) {
|
||||
queryfx(
|
||||
$conn,
|
||||
'INSERT INTO %T '.
|
||||
'(primaryObjectPHID, userPHID, chronologicalKey, hasViewed) '.
|
||||
'VALUES %Q',
|
||||
$notif->getTableName(),
|
||||
implode(', ', $sql));
|
||||
}
|
||||
}
|
||||
|
||||
private function sendNotification($chrono_key, array $subscribed_phids) {
|
||||
|
|
Loading…
Add table
Reference in a new issue