diff options
author | friendica <info@friendica.com> | 2013-02-10 16:04:03 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-10 16:04:03 -0800 |
commit | 2cfd73c57da302a1171f22a5b1b73a5d2195d3ad (patch) | |
tree | 4d65185655ed1c4962a889841998de7e5ef05d32 /mod | |
parent | 99c5f88963227a48544747e9dc8b13550b88c0f2 (diff) | |
download | volse-hubzilla-2cfd73c57da302a1171f22a5b1b73a5d2195d3ad.tar.gz volse-hubzilla-2cfd73c57da302a1171f22a5b1b73a5d2195d3ad.tar.bz2 volse-hubzilla-2cfd73c57da302a1171f22a5b1b73a5d2195d3ad.zip |
progress on mod/display - slow but any progress is good
Diffstat (limited to 'mod')
-rw-r--r-- | mod/display.php | 33 | ||||
-rw-r--r-- | mod/update_display.php | 2 |
2 files changed, 11 insertions, 24 deletions
diff --git a/mod/display.php b/mod/display.php index 2ececb262..b4e22e9a1 100644 --- a/mod/display.php +++ b/mod/display.php @@ -89,7 +89,7 @@ dbg(0); $sql_extra = public_permissions_sql(get_observer_hash()); - if($load) { + if($update && $load) { $pager_sql = sprintf(" LIMIT %d, %d ",intval($a->pager['start']), intval($a->pager['itemspage'])); @@ -97,11 +97,11 @@ dbg(0); dbg(1); $r = q("SELECT * from item WHERE item_restrict = 0 - AND ( `item`.`allow_cid` = '' AND `item`.`allow_gid` = '' AND `item`.`deny_cid` = '' - AND `item`.`deny_gid` = '' AND item_private = 0 ) - and uid in ( " . stream_perms_api_uids() . " ) - $sql_extra and uri = '%s' + AND ((( `item`.`allow_cid` = '' AND `item`.`allow_gid` = '' AND `item`.`deny_cid` = '' + AND `item`.`deny_gid` = '' AND item_private = 0 ) + and uid in ( " . stream_perms_api_uids() . " )) + $sql_extra ) group by uri limit 1", dbesc($target_item['parent_uri']) ); @@ -134,28 +134,13 @@ dbg(0); } - if($a->profile['hidewall'] && (! $is_owner) && (! $remote_contact)) { - notice( t('Access to this profile has been restricted.') . EOL); - return; - } - - if($items) { - -// if((local_user()) && (local_user() == $owner)) { -// q("UPDATE `item` SET `unseen` = 0 -// WHERE `parent` = %d AND `unseen` = 1", -// intval($r[0]['parent']) -// ); -// } - -// xchan_query($items); -// $items = fetch_post_tags($items); + $o .= conversation($a,$items,'display', $update, 'client'); + return $o; - $o .= conversation($a,$items,'display', $update, 'client'); - } /* - else { + elseif((! $update) && (! { + $r = q("SELECT `id`, item_flags FROM `item` WHERE `id` = '%s' OR `uri` = '%s' LIMIT 1", dbesc($item_hash), dbesc($item_hash) diff --git a/mod/update_display.php b/mod/update_display.php index e23b29399..c8eb9c3a3 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -8,6 +8,8 @@ require_once('include/group.php'); function update_display_content(&$a) { $profile_uid = intval($_GET['p']); + if(! $profile_uid) + $profile_uid = (-1); $load = (((argc() > 1) && (argv(1) == 'load')) ? 1 : 0); header("Content-type: text/html"); echo "<!DOCTYPE html><html><body>\r\n"; |