You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
667 B

<?php
use Movim\Widget\Base;
use Respect\Validation\Validator;
class CommunitySubscriptions extends Base
{
private $_list_server;
public function checkNewServer($node)
{
$r = ($this->_list_server != $node->server);
$this->_list_server = $node->server;
return $r;
}
public function prepareSubscriptions()
{
$view = $this->tpl();
$view->assign('subscriptions', $this->user->subscriptions()
->where('node', 'not like', 'urn:xmpp:microblog:0:comments/%')
->orderBy('server')->orderBy('node')
->get());
return $view->draw('_communitysubscriptions');
}
}