streams/Zotlabs/Widget/Catcloud_wall.php
2021-12-03 10:02:31 +11:00

23 lines
530 B
PHP

<?php
namespace Zotlabs\Widget;
use App;
class Catcloud_wall
{
public function widget($arr)
{
if ((!App::$profile['profile_uid']) || (!App::$profile['channel_hash']))
return '';
if (!perm_is_allowed(App::$profile['profile_uid'], get_observer_hash(), 'view_stream'))
return '';
$limit = ((array_key_exists('limit', $arr)) ? intval($arr['limit']) : 50);
return catblock(App::$profile['profile_uid'], $limit, '', App::$profile['channel_hash'], 'wall');
}
}