...
 
Commits (2)
......@@ -101,7 +101,8 @@ class Entities
];
$activity = new Activity();
$activity->setEphemeral(true);
$activity->setEphemeral(true)
->setHideImpressions(true);
if ($entity instanceof Blog) {
// New entities
......
......@@ -15,6 +15,8 @@ class Activity extends Entity
protected $dirtyIndexes = false;
protected $hide_impressions = false;
/**
* Initialize entity attributes
* @return null
......@@ -215,6 +217,7 @@ class Activity extends Entity
'pending',
'rating',
'ephemeral',
'hide_impressions',
));
}
......@@ -272,6 +275,10 @@ class Activity extends Entity
$export['ephemeral'] = $this->getEphemeral();
$export['ownerObj'] = $this->getOwnerObj();
if ($this->hide_impressions) {
$export['hide_impressions'] = $this->hide_impressions;
}
switch($this->custom_type) {
case 'video':
if ($this->custom_data['guid']) {
......@@ -681,6 +688,24 @@ class Activity extends Entity
return $this;
}
/**
* @return bool
*/
public function getHideImpressions()
{
return (bool) $this->hide_impressions;
}
/**
* @param $value
* @return $this
*/
public function setHideImpressions($value)
{
$this->hide_impressions = (bool) $value;
return $this;
}
public function getOwnerObj()
{
if (!$this->ownerObj && $this->owner_guid) {
......