You are here

protected function UserActivity::queryAlter in Heartbeat 7

Implementation of queryAlter().

Overrides HeartbeatStream::queryAlter

File

modules/heartbeat_defaults/streams/useractivity.inc, line 19
Personal/private heartbeat activity access object

Class

UserActivity
Class PrivateHeartbeat Concrete class to prepare messages for the current user only

Code

protected function queryAlter() {
  $this->query
    ->condition(db_or()
    ->condition('ha.uid', $this->viewed->uid)
    ->condition(db_and()
    ->condition('ha.uid_target', $this->viewed->uid)
    ->condition('ha.access', HEARTBEAT_PRIVATE, '>')));
}