Beispiel #1
0
 public function sendNotificationToWatchUsersOnReply(array $reply, array $thread = null, array $noAlerts = array())
 {
     if (isset($reply['message'])) {
         /*
         	HIDE IN THREAD/POST EMAIL ALERT
         	The argument false of the parsingProtection function must be used here.
         */
         $reply['message'] = BBM_Protection_Helper_ContentProtection::parsingProtection($reply['message'], false);
     }
     return parent::sendNotificationToWatchUsersOnReply($reply, $thread, $noAlerts);
 }
Beispiel #2
0
 public function getSearchResultsForDisplay(array $results, array $viewingUser = null)
 {
     $parent = parent::getSearchResultsForDisplay($results, $viewingUser = null);
     if (isset($parent['results']) && is_array($parent['results'])) {
         foreach ($parent['results'] as &$result) {
             //Hide in search results - the word will still be found, but it won't be displayed in the preview
             if (isset($result['content']['message'])) {
                 $result['content']['message'] = BBM_Protection_Helper_ContentProtection::parsingProtection($result['content']['message']);
             }
         }
     }
     return $parent;
 }
Beispiel #3
0
 public function fillOutNewsFeedItems(array $newsFeed, array $viewingUser)
 {
     $parent = parent::fillOutNewsFeedItems($newsFeed, $viewingUser);
     if (!is_array($parent)) {
         return $parent;
     }
     foreach ($parent as &$item) {
         if (isset($item['content']['message'])) {
             $item['content']['message'] = BBM_Protection_Helper_ContentProtection::parsingProtection($item['content']['message']);
         }
     }
     return $parent;
 }