set default address for showstream
This commit is contained in:
parent
a7380d5933
commit
798b03fb5f
@ -278,6 +278,18 @@ class ShowstreamAction extends ProfileAction
|
|||||||
$cloud = new PersonalTagCloudSection($this, $this->user);
|
$cloud = new PersonalTagCloudSection($this, $this->user);
|
||||||
$cloud->show();
|
$cloud->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function noticeFormOptions()
|
||||||
|
{
|
||||||
|
$options = parent::noticeFormOptions();
|
||||||
|
$cur = common_current_user();
|
||||||
|
|
||||||
|
if (empty($cur) || $cur->id != $this->profile->id) {
|
||||||
|
$options['to_profile'] = $this->profile;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $options;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We don't show the author for a profile, since we already know who it is!
|
// We don't show the author for a profile, since we already know who it is!
|
||||||
|
Loading…
Reference in New Issue
Block a user