aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/recentchanges.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-23 15:32:27 -0400
committerJoey Hess <joey@kitenet.net>2010-06-23 15:54:52 -0400
commitc46bcb425af0948ac59581d6ba7b477826d83ae3 (patch)
treefed9af5634ba9e74b5284ea44eb1a63a6755cf40 /IkiWiki/Plugin/recentchanges.pm
parent0580cbbf40873a2d20da96b41f4b14f642cb108d (diff)
downloadikiwiki-c46bcb425af0948ac59581d6ba7b477826d83ae3.tar
ikiwiki-c46bcb425af0948ac59581d6ba7b477826d83ae3.tar.gz
Add new optional field usershort to rcs_recentchanges.
Now the git plugin supports commits with author fields that look like: Author: http://my.openid/ <me@web> Then in recentchanges, the short username will be displayed, linking to the openid. Particularly useful for the horrible google openids, of course.
Diffstat (limited to 'IkiWiki/Plugin/recentchanges.pm')
-rw-r--r--IkiWiki/Plugin/recentchanges.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/recentchanges.pm b/IkiWiki/Plugin/recentchanges.pm
index e546e4702..9f188cbff 100644
--- a/IkiWiki/Plugin/recentchanges.pm
+++ b/IkiWiki/Plugin/recentchanges.pm
@@ -114,12 +114,11 @@ sub store ($$$) {
];
push @{$change->{pages}}, { link => '...' } if $is_excess;
- # See if the committer is an openid.
$change->{author}=$change->{user};
my $oiduser=eval { IkiWiki::openiduser($change->{user}) };
if (defined $oiduser) {
$change->{authorurl}=$change->{user};
- $change->{user}=$oiduser;
+ $change->{user}=defined $change->{usershort} ? $change->{usershort} : $oiduser;
}
elsif (length $config{cgiurl}) {
$change->{authorurl} = IkiWiki::cgiurl(