- parent::prepare($args);
- $this->id = $this->trimmed('id');
- if (empty($this->id)) {
- return false;
- }
- $this->id = $this->id+0;
- $this->page = $this->trimmed('page');
- if (empty($this->page)) {
- $this->page = 1;
- }
-
- $cur = common_current_user();
-
- if (empty($cur)) {
- $this->userProfile = null;
- } else {
- $this->userProfile = $cur->getProfile();
- }
-
- $stream = new ConversationNoticeStream($this->id, $this->userProfile);
-
- $this->notices = $stream->getNotices(0, self::MAX_NOTICES);
-
- return true;
- }
-
- /**
- * Handle the action
- *
- * @param array $args Web and URL arguments
- *
- * @return void
- */
- function handle($args)
- {
- parent::handle($args);
- $this->showPage();