get avatar by nickname

This is to support third-party apps that want to build an URL to an
avatar given a user's name.

darcs-hash:20080711060045-84dde-08b0072de764d5b67ce7abe73fa0553f32de4ab3.gz
This commit is contained in:
Evan Prodromou
2008-07-11 02:00:45 -04:00
parent 9b5e6de1f4
commit 69445a6179
3 changed files with 71 additions and 0 deletions

View File

@@ -780,6 +780,8 @@ function common_fancy_url($action, $args=NULL) {
return common_path('search/notice' . (($args) ? ('?' . http_build_query($args)) : ''));
case 'noticesearchrss':
return common_path('search/notice/rss' . (($args) ? ('?' . http_build_query($args)) : ''));
case 'avatarbynickname':
return common_path($args['nickname'].'/avatar/'.$args['size']);
default:
return common_simple_url($action, $args);
}