+class AllAction extends StreamAction {
+
+ function handle($args) {
+
+ parent::handle($args);
+
+ $nickname = common_canonical_nickname($this->arg('nickname'));
+ $user = User::staticGet('nickname', $nickname);
+
+ if (!$user) {
+ $this->no_such_user();
+ return;
+ }
+
+ $profile = $user->getProfile();
+
+ if (!$profile) {
+ common_server_error(_t('User record exists without profile.'));
+ return;
+ }
+
+ # Looks like we're good; show the header
+
+ common_show_header($profile->nickname . _t(" and friends"));
+
+ $cur = common_current_user();
+
+ if ($cur && $profile->id == $cur->id) {
+ common_notice_form();
+ }
+
+ $this->show_notices($profile);
+
+ common_show_footer();
+ }