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