]> git.mxchange.org Git - friendica.git/commitdiff
make notes work
authorrabuzarus <>
Thu, 25 Jun 2015 20:57:26 +0000 (22:57 +0200)
committerrabuzarus <>
Thu, 25 Jun 2015 20:57:26 +0000 (22:57 +0200)
include/acl_selectors.php
include/conversation.php
view/templates/jot.tpl

index b892c2d122166fad77c3b0bb59accc10dd6b71af..88f11b2b008f942dd755a478c0eeff8dc6f26086 100644 (file)
@@ -374,7 +374,7 @@ function populate_acl($user = null,$celeb = false,$show_jotnets = false) {
                '$aclModalTitle' => t('Permissions'),
                '$aclModalDismiss' => t('Close'),
                '$features' => array(
-                       "aclautomention"=>(feature_enabled($user['uid'],"aclautomention")?"true":"false")
+               "aclautomention"=>(feature_enabled($user['uid'],"aclautomention")?"true":"false")
                ),
        ));
 
index a6ea4da810f634a03edd860cf7cb40d57fd57f3c..f6da55c4f14c98f40757ddf51f10910f86824a9e 100644 (file)
@@ -1124,6 +1124,7 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) {
                '$profile_uid' => $x['profile_uid'],
                '$preview' => ((feature_enabled($x['profile_uid'],'preview')) ? t('Preview') : ''),
                '$jotplugins' => $jotplugins,
+               '$notes_cid' => $notes_cid,
                '$sourceapp' => t($a->sourcename),
                '$cancel' => t('Cancel'),
                '$rand_num' => random_digits(12),
index 8fb932863288f77122d7875267808a0c5f50f8c4..dfc6b2710415fb94b44585e597ef4cedf053ff37 100644 (file)
@@ -16,6 +16,9 @@
                <input type="hidden" name="post_id" value="{{$post_id}}" />
                <input type="hidden" name="preview" id="jot-preview" value="0" />
                <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
+               {{if $notes_cid}}
+               <input type="hidden" name="contact_allow[]" value="<{{$notes_cid}}>" />
+               {{/if}}
                <div id="jot-title-wrap"><input name="title" id="jot-title" type="text" placeholder="{{$placeholdertitle|escape:'html'}}" value="{{$title|escape:'html'}}" class="jothidden" style="display:none"></div>
                {{if $placeholdercategory}}
                <div id="jot-category-wrap"><input name="category" id="jot-category" type="text" placeholder="{{$placeholdercategory|escape:'html'}}" value="{{$category|escape:'html'}}" class="jothidden" style="display:none" /></div>