X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdisplay.php;h=81ed174acc46daac65f51a62327382fce2763800;hb=15cae001d947d27a75147aecec089e44d7b8c31f;hp=00f8b503a721dc5e3e8a3756bcd5e5e4c0508497;hpb=39a49d51e370f6421a065cd78594e849ef92ff73;p=friendica.git diff --git a/mod/display.php b/mod/display.php old mode 100755 new mode 100644 index 00f8b503a7..81ed174acc --- a/mod/display.php +++ b/mod/display.php @@ -16,7 +16,15 @@ function display_content(&$a) { $o = '
' . "\r\n"; - $a->page['htmlhead'] .= ''; + $a->page['htmlhead'] .= << +$(document).ready(function() { + $(".comment-edit-wrapper textarea").contact_autocomplete(baseurl+"/acl"); + // make auto-complete work in more places + $(".wall-item-comment-wrapper textarea").contact_autocomplete(baseurl+"/acl"); +}); + +EOT; $nick = (($a->argc > 1) ? $a->argv[1] : ''); @@ -85,10 +93,7 @@ function display_content(&$a) { $o .= status_editor($a,$x,0,true); - $sql_extra = permissions_sql($a->profile['uid'],$remote_contact,$groups); - - if(! local_user() && ! remote_user()) - $sql_extra .= " and `item`.`private` = 0 "; + $sql_extra = item_permissions_sql($a->profile['uid'],$remote_contact,$groups); $r = q("SELECT `item`.*, `item`.`id` AS `item_id`, `contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`,