|
@@ -2081,9 +2081,15 @@ class BxTimelineTemplate extends BxBaseModNotificationsTemplate
|
|
|
$aEvent['cmts']['count'] = $aEvent['comments']['count'];
|
|
$aEvent['cmts']['count'] = $aEvent['comments']['count'];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ *
|
|
|
|
|
+ * Disabled because it wilter out non-standard fields,
|
|
|
|
|
+ * like price from Ads or dates from Events.
|
|
|
|
|
+ *
|
|
|
$aEvent['content'] = array_intersect_key($aEvent['content'], array_flip([
|
|
$aEvent['content'] = array_intersect_key($aEvent['content'], array_flip([
|
|
|
'object_id', 'title', 'text', 'links', 'images', 'images_attach', 'videos', 'videos_attach', 'files', 'files_attach', 'parse_type', 'owner_name', 'embed'
|
|
'object_id', 'title', 'text', 'links', 'images', 'images_attach', 'videos', 'videos_attach', 'files', 'files_attach', 'parse_type', 'owner_name', 'embed'
|
|
|
]));
|
|
]));
|
|
|
|
|
+ */
|
|
|
|
|
|
|
|
return array_intersect_key($aEvent, array_flip([
|
|
return array_intersect_key($aEvent, array_flip([
|
|
|
'id', 'type', 'object_privacy_view', 'content', 'labels', 'date', 'menu_actions', 'menu_counters', 'menu_manage', 'author_data', 'author_actions', 'url', 'owners', 'cmts'
|
|
'id', 'type', 'object_privacy_view', 'content', 'labels', 'date', 'menu_actions', 'menu_counters', 'menu_manage', 'author_data', 'author_actions', 'url', 'owners', 'cmts'
|
|
@@ -3261,6 +3267,12 @@ class BxTimelineTemplate extends BxBaseModNotificationsTemplate
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$this->_preparetDataActions(true, $aEvent, $aResult);
|
|
$this->_preparetDataActions(true, $aEvent, $aResult);
|
|
|
|
|
+
|
|
|
|
|
+ if($this->_bIsApi)
|
|
|
|
|
+ $aResult['content'] = array_intersect_key($aResult['content'], array_flip([
|
|
|
|
|
+ 'object_id', 'title', 'text', 'links', 'images', 'images_attach', 'videos', 'videos_attach', 'files', 'files_attach', 'parse_type', 'owner_name', 'embed'
|
|
|
|
|
+ ]));
|
|
|
|
|
+
|
|
|
return $aResult;
|
|
return $aResult;
|
|
|
}
|
|
}
|
|
|
|
|
|