aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-17 16:50:32 -0800
committerfriendica <info@friendica.com>2013-11-17 16:50:32 -0800
commit06e0272db873ad0b7dbc96596e92b8c635f940a2 (patch)
treecc9c69c446e13de010baa4fe2dcd2c401aef4f94 /include/items.php
parent28b0eb9c330261ea6a8cd36248c194b6b153f5e6 (diff)
downloadvolse-hubzilla-06e0272db873ad0b7dbc96596e92b8c635f940a2.tar.gz
volse-hubzilla-06e0272db873ad0b7dbc96596e92b8c635f940a2.tar.bz2
volse-hubzilla-06e0272db873ad0b7dbc96596e92b8c635f940a2.zip
populate some posts when somebody is granted "read stream" permission
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 520ea7230..5793a7d66 100755
--- a/include/items.php
+++ b/include/items.php
@@ -3757,6 +3757,7 @@ function fetch_post_tags($items,$link = false) {
function zot_feed($uid,$observer_xchan,$mindate) {
+
$result = array();
$mindate = datetime_convert('UTC','UTC',$mindate);
if(! $mindate)
@@ -3764,10 +3765,14 @@ function zot_feed($uid,$observer_xchan,$mindate) {
$mindate = dbesc($mindate);
+ logger('zot_feed: ' . $uid);
+
if(! perm_is_allowed($uid,$observer_xchan,'view_stream')) {
+ logger('zot_feed: permission denied.');
return $result;
}
+ require_once('include/security.php');
$sql_extra = item_permissions_sql($uid);
if($mindate != '0000-00-00 00:00:00') {