use inboxnoticestream in RSS 1.0
This commit is contained in:
parent
328373e29c
commit
831eaa039b
@ -83,16 +83,9 @@ class AllrssAction extends Rss10Action
|
|||||||
*/
|
*/
|
||||||
function getNotices($limit=0)
|
function getNotices($limit=0)
|
||||||
{
|
{
|
||||||
$cur = common_current_user();
|
$stream = new InboxNoticeStream($this->user);
|
||||||
$user = $this->user;
|
$notice = $stream->getNotices(0, $limit, null, null);
|
||||||
|
|
||||||
if (!empty($cur) && $cur->id == $user->id) {
|
|
||||||
$notice = $this->user->noticeInbox(0, $limit);
|
|
||||||
} else {
|
|
||||||
$notice = $this->user->noticesWithFriends(0, $limit);
|
|
||||||
}
|
|
||||||
|
|
||||||
$notice = $user->noticesWithFriends(0, $limit);
|
|
||||||
$notices = array();
|
$notices = array();
|
||||||
|
|
||||||
while ($notice->fetch()) {
|
while ($notice->fetch()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user