]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/User.php
Added missing dataType line for ajaxForm
[quix0rs-gnu-social.git] / classes / User.php
index 0a70c9801402f8038d1dc59bb72bf0204ce1f3c7..3fa9cc15262420f9b6a05721eac472f90c2829b4 100644 (file)
@@ -198,6 +198,15 @@ class User extends Memcached_DataObject
         }
         if (!empty($location)) {
             $profile->location = $location;
+
+            $loc = Location::fromName($location);
+
+            if (!empty($loc)) {
+                $profile->lat         = $loc->lat;
+                $profile->lon         = $loc->lon;
+                $profile->location_id = $loc->location_id;
+                $profile->location_ns = $loc->location_ns;
+            }
         }
 
         $profile->created = common_sql_now();
@@ -319,6 +328,7 @@ class User extends Memcached_DataObject
                                                   common_config('site', 'name'),
                                                   $user->nickname),
                                           'system');
+                common_broadcast_notice($notice);
             }
         }