some auto-friending cleanups

This commit is contained in:
friendica 2013-05-19 20:38:53 -07:00
parent 1f921a51ae
commit 52acfce84b
4 changed files with 12 additions and 3 deletions

View File

@ -164,8 +164,10 @@ function new_contact($uid,$url,$channel,$interactive = false) {
dbesc($xchan_hash),
intval($uid)
);
if($r)
if($r) {
$result['abook'] = $r[0];
proc_run('php', 'include/notifier.php', 'permission_update', $result['abook']['abook_id']);
}
/** If there is a default group for this channel, add this member to it */

View File

@ -21,7 +21,7 @@ function follow_init(&$a) {
goaway($return_url);
}
info( t('Channel added') . EOL);
info( t('Channel added.') . EOL);
goaway(z_root() . '/connections/' . $result['abook']['abook_id']);

View File

@ -349,6 +349,13 @@ footer {
font-weight: bold;
}
.warning-text {
width: auto;
font-size: 1.2em;
font-weight: bold;
color: #ff0000;
}
.preview {
background: url('../img/gray_and_white_diagonal_stripes_background_seamless.gif');
}

View File

@ -39,7 +39,7 @@
<input id="contact-closeness-mirror" type="hidden" name="closeness" value="{{$close}}" />
{{if $noperms}}
<div id="noperm-desc" class="descriptive-paragraph">{{$noperms}}</div>
<div id="noperm-desc" class="warning-text">{{$noperms}}</div>
{{/if}}