public function processPost(array $post, $postObject = null)
 {
     $post = parent::processPost($post, $postObject);
     if (isset($post['Rating']) && $post['Rating'] <= $this->OnlyShowIfRatingIsHigherThan) {
         $post['hidden'] = true;
     }
     return $post;
 }
 public function processPost(array $post, $postObject = null)
 {
     $post = parent::processPost($post, $postObject);
     if (isset($post['HashTags']) && isset($post['Content'])) {
         foreach ($post['HashTags'] as $tag) {
             if (!isset($tag['Content'])) {
                 continue;
             }
             if ($this->AllowHashTagTweets) {
                 \Milkyway\SS\SocialFeed\Utilities::require_twitter_script();
                 $post['Content'] = str_replace('#' . $post['Content'], sprintf('<span class="twitter-btn"><a href="https://twitter.com/intent/tweet?button_hashtag=%s" class="twitter-hashtag-button" target="_blank">#%s</a></span>', $tag['Content'], $tag['Content']), $post['Content']);
             } else {
                 $post['Content'] = str_replace('#' . $post['Content'], sprintf('<a href="%s" target="_blank">#%s</a>', 'http://twitter.com/search?q=' . urlencode('#' . $tag['Content']) . '&src=hash', $tag['Content']), $post['Content']);
             }
         }
     }
     return $post;
 }
 public function processPost(array $post, $postObject = null)
 {
     $post = parent::processPost($post, $postObject);
     if ($this->AllowHashTagLinks) {
         if ($post['Content']) {
             $post['Content'] = $this->addHashTags($post['Content']);
         }
         if ($post['Description']) {
             $post['Description'] = $this->addHashTags($post['Description']);
         }
     }
     if (isset($post['Rating']) && $post['Rating'] <= $this->OnlyShowIfRatingIsHigherThan) {
         $post['hidden'] = true;
     }
     if ($this->DoNotShowIfExpired && isset($post['Expires']) && $post['Expires'] && $post['Expires']->InPast()) {
         $post['hidden'] = true;
     }
     return $post;
 }