$page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
- common_show_header(_t('Public timeline'), array($this, 'show_header'));
+ common_show_header(_t('Public timeline'),
+ array($this, 'show_header'), NULL,
+ array($this, 'show_top'));
# XXX: Public sidebar here?
common_show_footer();
}
+ function show_top() {
+ if (common_logged_in()) {
+ common_notice_form();
+ }
+ }
+
function show_header() {
common_element('link', array('rel' => 'alternate',
'href' => common_local_url('publicrss'),
$notice = DB_DataObject::factory('notice');
- # XXX: filter out private notifications
+ # FIXME: bad performance
+
+ $notice->whereAdd('EXISTS (SELECT user.id from user where user.id = notice.profile_id)');
$notice->orderBy('created DESC');