diff options
author | friendica <info@friendica.com> | 2014-10-27 19:21:41 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-10-27 19:23:40 -0700 |
commit | 9cc76cb33da489c01731ecb5195f8bb3d51ce513 (patch) | |
tree | ab725c297ed5feba03826ead5126b2d9cb078183 /include | |
parent | 1b53d1c1d32072c71451cfd1a49b89ecfcd8b615 (diff) | |
download | volse-hubzilla-9cc76cb33da489c01731ecb5195f8bb3d51ce513.tar.gz volse-hubzilla-9cc76cb33da489c01731ecb5195f8bb3d51ce513.tar.bz2 volse-hubzilla-9cc76cb33da489c01731ecb5195f8bb3d51ce513.zip |
several unrelated things - auto_follow wasn't working for new accounts, error returned in private mention to a collection, and added auto-completion to photo tags; though it only matches people so the hover text is now wrong. Also made the photo edit form XHTML (XML) compliant.
Diffstat (limited to 'include')
-rw-r--r-- | include/follow.php | 2 | ||||
-rw-r--r-- | include/identity.php | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/follow.php b/include/follow.php index c8bd3c500..14385d90d 100644 --- a/include/follow.php +++ b/include/follow.php @@ -13,6 +13,8 @@ require_once('include/zot.php'); function new_contact($uid,$url,$channel,$interactive = false, $confirm = false) { + + $result = array('success' => false,'message' => ''); $a = get_app(); diff --git a/include/identity.php b/include/identity.php index 8866b4811..9a574ea65 100644 --- a/include/identity.php +++ b/include/identity.php @@ -176,6 +176,7 @@ function create_identity($arr) { // save this for auto_friending $total_identities = $ret['total_identities']; + $nick = mb_strtolower(trim($arr['nickname'])); if(! $nick) { $ret['message'] = t('Nickname is required.'); @@ -404,6 +405,7 @@ function create_identity($arr) { $accts = get_config('system','auto_follow'); if(($accts) && (! $total_identities)) { + require_once('include/follow.php'); if(! is_array($accts)) $accts = array($accts); foreach($accts as $acct) { |