X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fcrepair.php;h=ef5f3613051db8c1627bea2d6039d788cba86152;hb=a588ae4022cf3715ac4801a8ed9633b1be1d3dfb;hp=171e88f3120f3a510b30a22764609e271d298ccb;hpb=28df35052a452ad992ad8d67cffbfa380759e414;p=friendica.git diff --git a/mod/crepair.php b/mod/crepair.php index 171e88f312..ef5f361305 100644 --- a/mod/crepair.php +++ b/mod/crepair.php @@ -62,7 +62,7 @@ function crepair_post(&$a) { $remote_self = ((x($_POST,'remote_self')) ? $_POST['remote_self'] : false); $r = q("UPDATE `contact` SET `name` = '%s', `nick` = '%s', `url` = '%s', `request` = '%s', `confirm` = '%s', `notify` = '%s', `poll` = '%s', `attag` = '%s' , `remote_self` = %d - WHERE `id` = %d AND `uid` = %d LIMIT 1", + WHERE `id` = %d AND `uid` = %d", dbesc($name), dbesc($nick), dbesc($url), @@ -88,7 +88,7 @@ function crepair_post(&$a) { `name-date` = '%s', `uri-date` = '%s', `avatar-date` = '%s' - WHERE `id` = %d LIMIT 1 + WHERE `id` = %d ", dbesc($photos[0]), dbesc($photos[1]), @@ -156,7 +156,9 @@ function crepair_content(&$a) { '$label_notify' => t('Notification Endpoint URL'), '$label_poll' => t('Poll/Feed URL'), '$label_photo' => t('New photo from this URL'), - '$label_self' => t('Mirror all posts to the wall?'), + '$label_remote_self' => t('Remote Self'), + '$allow_remote_self' => get_config('system','allow_users_remote_self'), + '$remote_self' => array('remote_self', t('Mirror postings from this contact'), $contact['remote_self'], t('Mark this contact as remote_self, this will cause friendica to repost new entries from this contact.')), '$contact_name' => $contact['name'], '$contact_nick' => $contact['nick'], '$contact_id' => $contact['id'], @@ -166,10 +168,8 @@ function crepair_content(&$a) { '$notify' => $contact['notify'], '$poll' => $contact['poll'], '$contact_attag' => $contact['attag'], - '$contact_self' => array('remote_self', t('Mirror all posts to the wall?'), $contact['remote_self'], - t('Shall all posts from this contact posted like your own posts?')), '$lbl_submit' => t('Submit') - )); + )); return $o;