Example #1
0
 protected function doStreamPreparation()
 {
     $tag = common_canonical_tag($this->trimmed('tag'));
     $this->tag = Notice_tag::getKV('tag', $tag);
     if (!$this->tag instanceof Notice_tag) {
         // TRANS: Client error when requesting a tag feed for a non-existing tag.
         $this->clientError(_('No such tag.'));
     }
 }
Example #2
0
 function prepare($args)
 {
     parent::prepare($args);
     $tag = common_canonical_tag($this->trimmed('tag'));
     $this->tag = Notice_tag::getKV('tag', $tag);
     if (!$this->tag) {
         // TRANS: Client error when requesting a tag feed for a non-existing tag.
         $this->clientError(_('No such tag.'));
     } else {
         $this->notices = $this->getNotices($this->limit);
         return true;
     }
 }