Merge branch 'dev' of ../hz into dev
This commit is contained in:
commit
a1bea7d7cc
@ -166,7 +166,7 @@ class Item extends Controller {
|
|||||||
if(! perm_is_allowed($chan['channel_id'],get_observer_hash(),'view_stream'))
|
if(! perm_is_allowed($chan['channel_id'],get_observer_hash(),'view_stream'))
|
||||||
http_status_exit(403, 'Forbidden');
|
http_status_exit(403, 'Forbidden');
|
||||||
|
|
||||||
$i = Activity::encode_item_collection($nitems,'conversation/' . $item_id,'OrderedCollection',( defined('NOMADIC') ? false : true));
|
$i = Activity::encode_item_collection($nitems,'conversation/' . $item_id,'OrderedCollection');
|
||||||
if($portable_id) {
|
if($portable_id) {
|
||||||
ThreadListener::store(z_root() . '/item/' . $item_id,$portable_id);
|
ThreadListener::store(z_root() . '/item/' . $item_id,$portable_id);
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace Zotlabs\Widget;
|
namespace Zotlabs\Widget;
|
||||||
|
|
||||||
|
use Zotlabs\Lib\Apps;
|
||||||
|
|
||||||
require_once('include/socgraph.php');
|
require_once('include/socgraph.php');
|
||||||
|
|
||||||
|
|
||||||
@ -9,9 +11,9 @@ class Suggestions {
|
|||||||
|
|
||||||
function widget($arr) {
|
function widget($arr) {
|
||||||
|
|
||||||
if((! local_channel()) || (! feature_enabled(local_channel(),'suggest')))
|
|
||||||
return '';
|
|
||||||
|
|
||||||
|
if((! local_channel()) || (! Apps::system_app_installed(local_channel(), 'Suggest Channels')))
|
||||||
|
return EMPTY_STR;
|
||||||
|
|
||||||
$r = suggestion_query(local_channel(),get_observer_hash(),0,20);
|
$r = suggestion_query(local_channel(),get_observer_hash(),0,20);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user