mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:45:16 +02:00
cleanup
This commit is contained in:
parent
aa3a14ec36
commit
48ffa880f0
22 changed files with 2871 additions and 2432 deletions
|
@ -306,11 +306,11 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
|||
|
||||
if($network === 'dfrn') {
|
||||
|
||||
$new_relation = REL_VIP;
|
||||
if(($relation == REL_FAN) || ($duplex))
|
||||
$new_relation = REL_BUD;
|
||||
$new_relation = CONTACT_IS_FOLLOWER;
|
||||
if(($relation == CONTACT_IS_SHARING) || ($duplex))
|
||||
$new_relation = CONTACT_IS_FRIEND;
|
||||
|
||||
if(($relation == REL_FAN) && ($duplex))
|
||||
if(($relation == CONTACT_IS_SHARING) && ($duplex))
|
||||
$duplex = 0;
|
||||
|
||||
$r = q("UPDATE `contact` SET `photo` = '%s',
|
||||
|
@ -401,7 +401,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
|||
$r = q("SELECT `hide-friends` FROM `profile` WHERE `uid` = %d AND `is-default` = 1 LIMIT 1",
|
||||
intval($uid)
|
||||
);
|
||||
if((count($r)) && ($r[0]['hide-friends'] == 0) && (is_array($contact)) && isset($new_relation) && ($new_relation == REL_BUD)) {
|
||||
if((count($r)) && ($r[0]['hide-friends'] == 0) && (is_array($contact)) && isset($new_relation) && ($new_relation == CONTACT_IS_FRIEND)) {
|
||||
|
||||
require_once('include/items.php');
|
||||
|
||||
|
@ -592,11 +592,11 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
|||
|
||||
logger('dfrn_confirm: request - photos imported');
|
||||
|
||||
$new_relation = REL_FAN;
|
||||
if(($relation == REL_VIP) || ($duplex))
|
||||
$new_relation = REL_BUD;
|
||||
$new_relation = CONTACT_IS_SHARING;
|
||||
if(($relation == CONTACT_IS_FOLLOWER) || ($duplex))
|
||||
$new_relation = CONTACT_IS_FRIEND;
|
||||
|
||||
if(($relation == REL_VIP) && ($duplex))
|
||||
if(($relation == CONTACT_IS_FOLLOWER) && ($duplex))
|
||||
$duplex = 0;
|
||||
|
||||
$r = q("UPDATE `contact` SET
|
||||
|
@ -639,7 +639,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
|||
if((count($r)) && ($r[0]['notify-flags'] & NOTIFY_CONFIRM)) {
|
||||
|
||||
push_lang($r[0]['language']);
|
||||
$tpl = (($new_relation == REL_BUD)
|
||||
$tpl = (($new_relation == CONTACT_IS_FRIEND)
|
||||
? get_intltext_template('friend_complete_eml.tpl')
|
||||
: get_intltext_template('intro_complete_eml.tpl'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue