summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/profilesettings.php3
-rw-r--r--actions/register.php1
2 files changed, 3 insertions, 1 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php
index 7779379b1..fff6e3bd9 100644
--- a/actions/profilesettings.php
+++ b/actions/profilesettings.php
@@ -78,7 +78,8 @@ class ProfilesettingsAction extends SettingsAction {
$profile->homepage = $this->arg('homepage');
$profile->bio = $this->arg('bio');
$profile->location = $this->arg('location');
-
+ $profile->profileurl = common_profile_url($nickname);
+
if (!$profile->update()) {
common_server_error(_t('Couldnt save profile.'));
return;
diff --git a/actions/register.php b/actions/register.php
index 5c30fa1b3..fcf371d3a 100644
--- a/actions/register.php
+++ b/actions/register.php
@@ -81,6 +81,7 @@ class RegisterAction extends Action {
# TODO: wrap this in a transaction!
$profile = new Profile();
$profile->nickname = $nickname;
+ $profile->profileurl = common_profile_url($nickname);
$profile->created = DB_DataObject_Cast::dateTime(); # current time
$id = $profile->insert();
if (!$id) {