]> git.mxchange.org Git - quix0rs-gnu-social.git/log
quix0rs-gnu-social.git
9 years agoMerge commit 'refs/merge-requests/56' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Mon, 9 Mar 2015 09:39:27 +0000 (10:39 +0100)]
Merge commit 'refs/merge-requests/56' of https://gitorious.org/social/mainline into merge-requests/56

9 years agoSnapshot of the Transifex translation project - February 2015
digital dreamer [Sun, 8 Mar 2015 08:34:38 +0000 (09:34 +0100)]
Snapshot of the Transifex translation project - February 2015

9 years agoBug tracker link updated.
Mikael Nordfeldth [Sun, 1 Mar 2015 15:48:01 +0000 (16:48 +0100)]
Bug tracker link updated.

9 years ago1.1.3 not 1.1.3 beta3
Mikael Nordfeldth [Fri, 27 Feb 2015 09:15:23 +0000 (10:15 +0100)]
1.1.3 not 1.1.3 beta3

9 years agoI hereby dub thee 1.1.3 - The Spanish Invasion
Mikael Nordfeldth [Fri, 27 Feb 2015 08:58:38 +0000 (09:58 +0100)]
I hereby dub thee 1.1.3 - The Spanish Invasion

9 years agoPass Profile to asAtomEntry
Mikael Nordfeldth [Fri, 27 Feb 2015 08:57:49 +0000 (09:57 +0100)]
Pass Profile to asAtomEntry

9 years agoCSS to align the notice footer (thanks fnadde42)
Mikael Nordfeldth [Fri, 13 Feb 2015 11:10:25 +0000 (12:10 +0100)]
CSS to align the notice footer (thanks fnadde42)

9 years agoUpdated README.md and framework.php
Mikael Nordfeldth [Fri, 13 Feb 2015 11:08:54 +0000 (12:08 +0100)]
Updated README.md and framework.php

9 years agoDeja vu of user->getProfile() from 4f9b70d
Mikael Nordfeldth [Fri, 13 Feb 2015 10:55:37 +0000 (11:55 +0100)]
Deja vu of user->getProfile() from 4f9b70d

9 years agoDirectMessages backed up properly for UAS
Mikael Nordfeldth [Fri, 13 Feb 2015 10:54:15 +0000 (11:54 +0100)]
DirectMessages backed up properly for UAS

9 years agoFaves backed up properly to UAS
Mikael Nordfeldth [Fri, 13 Feb 2015 10:52:29 +0000 (11:52 +0100)]
Faves backed up properly to UAS

9 years agoProfile expected in Notice::asActivity from UAS
Mikael Nordfeldth [Fri, 13 Feb 2015 10:41:21 +0000 (11:41 +0100)]
Profile expected in Notice::asActivity from UAS

9 years agoUAS protected property user solved with getUser()
Mikael Nordfeldth [Fri, 13 Feb 2015 10:39:50 +0000 (11:39 +0100)]
UAS protected property user solved with getUser()

9 years agoEndSetApiUser will always contain a User
Mikael Nordfeldth [Fri, 13 Feb 2015 00:19:59 +0000 (01:19 +0100)]
EndSetApiUser will always contain a User

9 years agoextlib Michelf\Markdown updated 1.4.0 to 1.4.1
Mikael Nordfeldth [Thu, 12 Feb 2015 21:45:08 +0000 (22:45 +0100)]
extlib Michelf\Markdown updated 1.4.0 to 1.4.1

9 years agoDB_DataObject updated to 1.11.3
Mikael Nordfeldth [Thu, 12 Feb 2015 21:17:02 +0000 (22:17 +0100)]
DB_DataObject updated to 1.11.3

9 years agoDB updated to 1.8.2
Mikael Nordfeldth [Thu, 12 Feb 2015 21:00:50 +0000 (22:00 +0100)]
DB updated to 1.8.2

9 years agohtmLawed extlib updated from 1.1.16 to 1.1.19
Mikael Nordfeldth [Thu, 12 Feb 2015 20:50:21 +0000 (21:50 +0100)]
htmLawed extlib updated from 1.1.16 to 1.1.19

9 years agoschemaDef coding style fixes
Mikael Nordfeldth [Thu, 12 Feb 2015 16:45:02 +0000 (17:45 +0100)]
schemaDef coding style fixes

9 years agoMissing uri property of QnA_Answer class
Mikael Nordfeldth [Thu, 12 Feb 2015 16:44:05 +0000 (17:44 +0100)]
Missing uri property of QnA_Answer class

9 years agoAdded note on socialfying for HTTPS sites.
Mikael Nordfeldth [Thu, 12 Feb 2015 10:08:08 +0000 (11:08 +0100)]
Added note on socialfying for HTTPS sites.

9 years agoMerge commit 'refs/merge-requests/43' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Thu, 12 Feb 2015 10:03:39 +0000 (11:03 +0100)]
Merge commit 'refs/merge-requests/43' of https://gitorious.org/social/mainline into merge-requests/43

9 years agoClarify in INSTALL that MySQL must be 5.5+
Mikael Nordfeldth [Thu, 12 Feb 2015 09:41:43 +0000 (10:41 +0100)]
Clarify in INSTALL that MySQL must be 5.5+

lib/installer.php already said that when installing.

9 years agoDeleting redundant file.
Adam Moore [Wed, 11 Feb 2015 00:49:44 +0000 (16:49 -0800)]
Deleting redundant file.

9 years agoWebfinger instructions were incomplete/erroneous -- now they are not.
Adam Moore [Wed, 11 Feb 2015 00:36:32 +0000 (16:36 -0800)]
Webfinger instructions were incomplete/erroneous -- now they are not.

9 years agoMerge commit 'refs/merge-requests/41' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Tue, 10 Feb 2015 17:41:18 +0000 (18:41 +0100)]
Merge commit 'refs/merge-requests/41' of https://gitorious.org/social/mainline into merge-requests/41

9 years agoAdd 'statusnet_textarea' backward-compatibility
Chimo [Tue, 10 Feb 2015 15:53:24 +0000 (10:53 -0500)]
Add 'statusnet_textarea' backward-compatibility

9 years agoMerge commit 'refs/merge-requests/40' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Mon, 9 Feb 2015 23:30:20 +0000 (00:30 +0100)]
Merge commit 'refs/merge-requests/40' of https://gitorious.org/social/mainline into merge-requests/40

9 years agoReplace one instance of LOG_ERR with LOG_DEBUG
Chimo [Mon, 9 Feb 2015 23:08:46 +0000 (18:08 -0500)]
Replace one instance of LOG_ERR with LOG_DEBUG

9 years agoPrepopulate newnotice from URL arg
Chimo [Mon, 9 Feb 2015 23:06:26 +0000 (18:06 -0500)]
Prepopulate newnotice from URL arg

9 years agoGNU social SVG logo added to neo-gnu
Mikael Nordfeldth [Mon, 9 Feb 2015 20:44:01 +0000 (21:44 +0100)]
GNU social SVG logo added to neo-gnu

9 years agoneo-quitter unuglifying (thanks @marcus@gnusocial.ch )
Mikael Nordfeldth [Mon, 9 Feb 2015 19:25:24 +0000 (20:25 +0100)]
neo-quitter unuglifying (thanks @marcus@gnusocial.ch )

also formatting changes to the CSS like removing trailing whitespace.

9 years agoMerge commit 'refs/merge-requests/39' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Mon, 9 Feb 2015 10:35:19 +0000 (11:35 +0100)]
Merge commit 'refs/merge-requests/39' of https://gitorious.org/social/mainline into merge-requests/39

9 years agoTwitterBridge: don't array_merge() non-arrays
Chimo [Mon, 9 Feb 2015 01:11:50 +0000 (20:11 -0500)]
TwitterBridge: don't array_merge() non-arrays

Fixes: ErrorException: [2] array_merge(): Argument #2 is not an array
9 years agoMake TwitterBridge less noisy
Chimo [Mon, 9 Feb 2015 01:07:23 +0000 (20:07 -0500)]
Make TwitterBridge less noisy

Empty timelines are no longer warnings, but debug information

9 years agoCan now delete lists/peopletags (thanks MrB)
Mikael Nordfeldth [Sun, 8 Feb 2015 22:48:35 +0000 (23:48 +0100)]
Can now delete lists/peopletags (thanks MrB)

Reported on https://bugz.foocorp.net/T79
Fix by MrB: https://gist.github.com/mrvdb/0f5d84c9b56c0a390c4a

9 years agoMerge commit 'refs/merge-requests/37' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Sun, 8 Feb 2015 22:21:28 +0000 (23:21 +0100)]
Merge commit 'refs/merge-requests/37' of https://gitorious.org/social/mainline into merge-requests/37

9 years agoMerge commit 'refs/merge-requests/30' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Sun, 8 Feb 2015 22:19:53 +0000 (23:19 +0100)]
Merge commit 'refs/merge-requests/30' of https://gitorious.org/social/mainline into merge-requests/30

9 years agoMerge commit 'refs/merge-requests/31' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Sun, 8 Feb 2015 22:18:36 +0000 (23:18 +0100)]
Merge commit 'refs/merge-requests/31' of https://gitorious.org/social/mainline into merge-requests/31

9 years agoMerge commit 'refs/merge-requests/36' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Sun, 8 Feb 2015 22:11:47 +0000 (23:11 +0100)]
Merge commit 'refs/merge-requests/36' of https://gitorious.org/social/mainline into merge-requests/36

9 years agoPopulate 'created' property on attention
Chimo [Sun, 8 Feb 2015 19:47:03 +0000 (14:47 -0500)]
Populate 'created' property on attention

The 'created' column in attention SQL table has NOT NULL
restriction.

9 years agoPopulate 'created' property on ostatus_source
Chimo [Sun, 8 Feb 2015 18:41:29 +0000 (13:41 -0500)]
Populate 'created' property on ostatus_source

The 'created' column in ostatus_source SQL table has NOT NULL restriction.
INSERTs fail when running MySQL/MariaDB in strict mode if this is not
populated.

9 years agoadded non-critical FIXMEs
Mikael Nordfeldth [Sun, 8 Feb 2015 14:33:00 +0000 (15:33 +0100)]
added non-critical FIXMEs

9 years agoupdateWithKeys did not always COMMIT transactions
Mikael Nordfeldth [Sun, 8 Feb 2015 14:17:50 +0000 (15:17 +0100)]
updateWithKeys did not always COMMIT transactions

9 years agoOlder versions of PHP couldn't do array indexes on function returns.
Mikael Nordfeldth [Sun, 8 Feb 2015 10:53:47 +0000 (11:53 +0100)]
Older versions of PHP couldn't do array indexes on function returns.

9 years agoGeneral code quality improvement for easier understanding
Mikael Nordfeldth [Sun, 8 Feb 2015 10:47:15 +0000 (11:47 +0100)]
General code quality improvement for easier understanding

Also made sure we only match local group IDs in recognizedFeed for PushhubAction

9 years agoMerge commit 'refs/merge-requests/33' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Sun, 8 Feb 2015 10:23:04 +0000 (11:23 +0100)]
Merge commit 'refs/merge-requests/33' of https://gitorious.org/social/mainline into merge-requests/33

9 years agoMerge commit 'refs/merge-requests/34' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Sun, 8 Feb 2015 10:21:36 +0000 (11:21 +0100)]
Merge commit 'refs/merge-requests/34' of https://gitorious.org/social/mainline into merge-requests/34

9 years agoMerge commit 'refs/merge-requests/35' of https://gitorious.org/social/mainline into...
Mikael Nordfeldth [Sun, 8 Feb 2015 10:20:53 +0000 (11:20 +0100)]
Merge commit 'refs/merge-requests/35' of https://gitorious.org/social/mainline into merge-requests/35

9 years agoROLLBACK which may or may not be useful
Mikael Nordfeldth [Sun, 8 Feb 2015 10:09:19 +0000 (11:09 +0100)]
ROLLBACK which may or may not be useful

There were problems with queries that were executed but didn't seem to
be committed. Trying to patch that up by calling a ROLLBACK on transactions
where the loading of the page isn't stopped after the BEGIN statement's
intended function fails (like with the rememberme cookie in this commit).

9 years agoDocument "process_links" option for attachments
Chimo [Sat, 7 Feb 2015 16:16:14 +0000 (11:16 -0500)]
Document "process_links" option for attachments

9 years agoRemove NOT NULL restriction on FeedSub last_update
Chimo [Sat, 7 Feb 2015 16:08:03 +0000 (11:08 -0500)]
Remove NOT NULL restriction on FeedSub last_update

Fixes an issue where INSERTs fail if MySQL/MariaDB runs in "strict
mode".

9 years agoRemove NOT NULL restriction on HubSub 'lease'
Chimo [Sat, 7 Feb 2015 15:46:13 +0000 (10:46 -0500)]
Remove NOT NULL restriction on HubSub 'lease'

This fixes an issue where INSERTs in HubSub fail if MySQL/MariaDB is
running in "strict mode" since the default lease time in
PushHubAction::subunsub is null.

Permanent subscriptions have been removed in PuSH v0.4, but they are
being kept here for backward-compatibility with previous GS/SN versions.

9 years agoNetwork public feed name fixed (prev. not "Network")
Mikael Nordfeldth [Fri, 6 Feb 2015 11:51:04 +0000 (12:51 +0100)]
Network public feed name fixed (prev. not "Network")

9 years agoTrue isn't true in Javascript.
Mikael Nordfeldth [Thu, 5 Feb 2015 11:13:01 +0000 (12:13 +0100)]
True isn't true in Javascript.

Apparently True isn't true in javascript. They fiddle around like crazy with
loose typing (causing all kinds of problems) but vars are case sensitive?!

9 years agocacheKey change for Status_network class
Mikael Nordfeldth [Thu, 5 Feb 2015 11:05:39 +0000 (12:05 +0100)]
cacheKey change for Status_network class

From statusnet to gnusocial.

9 years agoOnly Firefox has predefined js function args (thanks MrB)
Mikael Nordfeldth [Thu, 5 Feb 2015 11:05:10 +0000 (12:05 +0100)]
Only Firefox has predefined js function args (thanks MrB)

9 years agoMemcache is a plugin, also now not explicitly mentioned in CONFIGURE
Mikael Nordfeldth [Thu, 5 Feb 2015 10:49:06 +0000 (11:49 +0100)]
Memcache is a plugin, also now not explicitly mentioned in CONFIGURE

9 years agoReplace memcache with opcache in INSTALL instructions.
Mikael Nordfeldth [Thu, 5 Feb 2015 10:44:36 +0000 (11:44 +0100)]
Replace memcache with opcache in INSTALL instructions.

9 years agoBut let's hide external permalink if already linked through 'source'
Mikael Nordfeldth [Wed, 4 Feb 2015 21:44:38 +0000 (22:44 +0100)]
But let's hide external permalink if already linked through 'source'

9 years agoNo reason to hide external notice permalinks
Mikael Nordfeldth [Wed, 4 Feb 2015 21:32:57 +0000 (22:32 +0100)]
No reason to hide external notice permalinks

9 years agoBy default, don't allow nick changes for profiles
Mikael Nordfeldth [Wed, 4 Feb 2015 20:25:14 +0000 (21:25 +0100)]
By default, don't allow nick changes for profiles

This goes for both users and groups, since they share nickname namespace.

If you want to enable nickname changes, just add this to your config:

   $config['profile']['changenick'] = true;

This commit should cover all changes in our usual web forms as well as through
the API.

9 years agoHTMLOutputter input element can take arbitrary attributes now
Mikael Nordfeldth [Wed, 4 Feb 2015 19:52:10 +0000 (20:52 +0100)]
HTMLOutputter input element can take arbitrary attributes now

9 years agoVariable name updates in apigroupleave.php
Mikael Nordfeldth [Wed, 4 Feb 2015 16:30:50 +0000 (17:30 +0100)]
Variable name updates in apigroupleave.php

9 years agoAllow delete-inactive for gcfeeds
Mikael Nordfeldth [Wed, 4 Feb 2015 15:48:12 +0000 (16:48 +0100)]
Allow delete-inactive for gcfeeds

Garbage collecting should also allow to clean up leftover database entries.

9 years agoA single user instance also has the same URLs as multiuser instances
Mikael Nordfeldth [Wed, 4 Feb 2015 15:47:43 +0000 (16:47 +0100)]
A single user instance also has the same URLs as multiuser instances

9 years agoshowstream for singleuser instance too
Mikael Nordfeldth [Tue, 3 Feb 2015 21:33:01 +0000 (22:33 +0100)]
showstream for singleuser instance too

singleuser instances shouldn't be too special and have too many
alternative methods of doing stuff.

9 years agoUser class also needs getConfigPref
Mikael Nordfeldth [Tue, 3 Feb 2015 21:04:29 +0000 (22:04 +0100)]
User class also needs getConfigPref

9 years agoFavoritePlugin uses getConfigPref for profile setting
Mikael Nordfeldth [Tue, 3 Feb 2015 20:58:58 +0000 (21:58 +0100)]
FavoritePlugin uses getConfigPref for profile setting

9 years agogetConfigPref for globally configurable fallbacks
Mikael Nordfeldth [Tue, 3 Feb 2015 20:58:17 +0000 (21:58 +0100)]
getConfigPref for globally configurable fallbacks

9 years agoAvoid CLI printing some PEAR::DB deprecated stuff
Mikael Nordfeldth [Tue, 3 Feb 2015 20:27:25 +0000 (21:27 +0100)]
Avoid CLI printing some PEAR::DB deprecated stuff

We should get rid of PEAR::DB and reenable these logs. Upstream
doesn't seem to update.

9 years agoInform API users if notice was deleted.
Mikael Nordfeldth [Tue, 3 Feb 2015 20:21:12 +0000 (21:21 +0100)]
Inform API users if notice was deleted.

9 years ago$this out of context (use $rcpt)
Mikael Nordfeldth [Tue, 3 Feb 2015 20:15:37 +0000 (21:15 +0100)]
$this out of context (use $rcpt)

9 years agoRevert "Notices for faves are already sent as they are notices now."
Mikael Nordfeldth [Tue, 3 Feb 2015 16:50:21 +0000 (17:50 +0100)]
Revert "Notices for faves are already sent as they are notices now."

This reverts commit 636d5141e994297749a78190a19b62a94f41884f.

We want the salmon notifyActivity call

9 years agoThe favorite activity is an activity.
Mikael Nordfeldth [Tue, 3 Feb 2015 15:53:51 +0000 (16:53 +0100)]
The favorite activity is an activity.

9 years agoNotices for faves are already sent as they are notices now.
Mikael Nordfeldth [Tue, 3 Feb 2015 15:44:13 +0000 (16:44 +0100)]
Notices for faves are already sent as they are notices now.

9 years agoWrong variable name (s/fave/object/)
Mikael Nordfeldth [Tue, 3 Feb 2015 15:43:56 +0000 (16:43 +0100)]
Wrong variable name (s/fave/object/)

9 years agoFave::addNew now calls Notice::saveActivity
Mikael Nordfeldth [Tue, 3 Feb 2015 15:28:33 +0000 (16:28 +0100)]
Fave::addNew now calls Notice::saveActivity

as a bonus we've fixed several FIXME issues for favorite email notification
and updated parts of the codebase for these activities to a more modern style.

9 years agomore activity-like terminology in variable names
Mikael Nordfeldth [Tue, 3 Feb 2015 14:12:29 +0000 (15:12 +0100)]
more activity-like terminology in variable names

9 years agoFave insert logging directly in insert()
Mikael Nordfeldth [Tue, 3 Feb 2015 13:58:22 +0000 (14:58 +0100)]
Fave insert logging directly in insert()

9 years agoNoticeStream already handles "getNotices"
Mikael Nordfeldth [Tue, 3 Feb 2015 11:12:11 +0000 (12:12 +0100)]
NoticeStream already handles "getNotices"

9 years agoDon't email users who are sandboxed
Mikael Nordfeldth [Tue, 3 Feb 2015 10:41:20 +0000 (11:41 +0100)]
Don't email users who are sandboxed

If sandboxed or silenced, don't email the user any notifications.

9 years agoSet a max-height for notice content in base css
Mikael Nordfeldth [Tue, 3 Feb 2015 10:40:42 +0000 (11:40 +0100)]
Set a max-height for notice content in base css

9 years agoneo-gnu is now default-theme. perty.
Mikael Nordfeldth [Mon, 2 Feb 2015 17:22:59 +0000 (18:22 +0100)]
neo-gnu is now default-theme. perty.

9 years agoneo-gnu theme, thanks Meikodis
Mikael Nordfeldth [Mon, 2 Feb 2015 17:05:59 +0000 (18:05 +0100)]
neo-gnu theme, thanks Meikodis

9 years agoVimeo oEmbed thumbnail host added to whitelist
Mikael Nordfeldth [Mon, 2 Feb 2015 10:13:52 +0000 (11:13 +0100)]
Vimeo oEmbed thumbnail host added to whitelist

9 years agoNicer behaviour for the loading of the notice input form.
Mikael Nordfeldth [Sun, 1 Feb 2015 20:35:36 +0000 (21:35 +0100)]
Nicer behaviour for the loading of the notice input form.

9 years agoHTML5 placeholder for notice input form.
Mikael Nordfeldth [Sun, 1 Feb 2015 20:35:25 +0000 (21:35 +0100)]
HTML5 placeholder for notice input form.

9 years agoAPI notice access was not access restricted
Mikael Nordfeldth [Sat, 31 Jan 2015 15:27:21 +0000 (16:27 +0100)]
API notice access was not access restricted

9 years agoRun onEndSetApiUser also when already logged in!
Mikael Nordfeldth [Sat, 31 Jan 2015 15:02:01 +0000 (16:02 +0100)]
Run onEndSetApiUser also when already logged in!

9 years agothis->target was not available in the listitem
Mikael Nordfeldth [Thu, 29 Jan 2015 23:15:55 +0000 (00:15 +0100)]
this->target was not available in the listitem

9 years agoA bunch of clientError that were called as serverError
Mikael Nordfeldth [Thu, 29 Jan 2015 22:35:49 +0000 (23:35 +0100)]
A bunch of clientError that were called as serverError

Calling serverError with a clientError status code (4xx) means it will
automatically default to Internal Server Error (500) which is in the
server error status code range (5xx). That is undesirable.

9 years agoNetwork wide public feed auth check fix
Mikael Nordfeldth [Thu, 29 Jan 2015 22:30:13 +0000 (23:30 +0100)]
Network wide public feed auth check fix

9 years agoApiTimelineNetworkPublicAction available now
Mikael Nordfeldth [Thu, 29 Jan 2015 21:16:30 +0000 (22:16 +0100)]
ApiTimelineNetworkPublicAction available now

Feeds added in NetworkpublicAction too.

9 years agoLet an administrator set config public/localonly
Mikael Nordfeldth [Thu, 29 Jan 2015 20:07:23 +0000 (21:07 +0100)]
Let an administrator set config public/localonly

Available on /panel/access

9 years agoSet siteprofile default values for config public/localonly
Mikael Nordfeldth [Thu, 29 Jan 2015 19:49:19 +0000 (20:49 +0100)]
Set siteprofile default values for config public/localonly

9 years agoUse 'StartpageAction' to determine what to show on /
Mikael Nordfeldth [Thu, 29 Jan 2015 19:48:49 +0000 (20:48 +0100)]
Use 'StartpageAction' to determine what to show on /

9 years ago/main/all will give a network-wide public stream
Mikael Nordfeldth [Wed, 28 Jan 2015 19:25:39 +0000 (20:25 +0100)]
/main/all will give a network-wide public stream

Qvitter had implemented this as a "PublicAndExternal" stream, but
I figured we might as well put it into the GNU social core.

9 years ago'zone' is a valid top domain
Mikael Nordfeldth [Tue, 27 Jan 2015 14:07:00 +0000 (15:07 +0100)]
'zone' is a valid top domain

We should get another form of URL identifier for interpreting links on notices...
It was hard editing this line in vim even, because of wide, multibyte characters...

9 years agoDefault value false for $force on Ostatus updateAvatar
Mikael Nordfeldth [Tue, 27 Jan 2015 13:14:24 +0000 (14:14 +0100)]
Default value false for $force on Ostatus updateAvatar