Differential D15662 Diff 37755 src/applications/notification/storage/PhabricatorFeedStoryNotification.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/notification/storage/PhabricatorFeedStoryNotification.php
Show All 33 Lines | return array( | ||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public static function updateObjectNotificationViews( | public static function updateObjectNotificationViews( | ||||
PhabricatorUser $user, | PhabricatorUser $user, | ||||
$object_phid) { | $object_phid) { | ||||
if (PhabricatorEnv::isReadOnly()) { | |||||
return; | |||||
} | |||||
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); | $unguarded = AphrontWriteGuard::beginScopedUnguardedWrites(); | ||||
$notification_table = new PhabricatorFeedStoryNotification(); | $notification_table = new PhabricatorFeedStoryNotification(); | ||||
$conn = $notification_table->establishConnection('w'); | $conn = $notification_table->establishConnection('w'); | ||||
queryfx( | queryfx( | ||||
$conn, | $conn, | ||||
'UPDATE %T | 'UPDATE %T | ||||
Show All 26 Lines |