Skip to content
Permalink
Browse files

Fix an error with removed alias

  • Loading branch information...
dorian-marchal committed Apr 4, 2016
1 parent ac678c4 commit 0cd2e1fa7afd85bb30c9c9e8a0d655b0f6aa224d
Showing with 6 additions and 3 deletions.
  1. +6 −3 Author.js
@@ -13,10 +13,13 @@ SK.Author = function(pseudo, avatarUrlSm) {
}
else {
this.profileUnavailable = false;
this.key = "authors." + pseudo;
}

if (avatarUrlSm) {
// https://regex101.com/r/kP6hL0/2
this.fullSizeAvatar = avatarUrlSm.replace(/\/(avatars?)-(sm|md)\//, "/$1/");
}
// https://regex101.com/r/kP6hL0/2
this.fullSizeAvatar = avatarUrlSm.replace(/\/(avatars?)-(sm|md)\//, "/$1/");
this.key = "authors." + pseudo;
this.profileLink = "";
//"ban tempo", "ban def", "error" ou "removed"
this.errorType = "";

0 comments on commit 0cd2e1f

Please sign in to comment.
You can’t perform that action at this time.