diff options
author | Kornel <kornel@geekhood.net> | 2020-04-11 00:25:44 +0100 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2020-04-11 00:25:44 +0100 |
commit | c2033008660e593a2fc398aa79a1c6f8716d6c15 (patch) | |
tree | 908877d699865adf3b84da4baf00674bfa929fd7 /front_end/src | |
parent | 97291a50844bd554738fd442b26f1de1d10863b4 (diff) |
Link other users to GH
Diffstat (limited to 'front_end/src')
-rw-r--r-- | front_end/src/urler.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/front_end/src/urler.rs b/front_end/src/urler.rs index 0e85680..f2cb682 100644 --- a/front_end/src/urler.rs +++ b/front_end/src/urler.rs @@ -142,7 +142,7 @@ impl Urler { if let Some(ref gh) = author.github { Some(match (gh.user_type, author.owner) { (UserType::User, true) => self.crates_io_user_by_github_login(&gh.login), - (UserType::User, _) => format!("https://crates.io/users/{}", encode(&gh.login)), + (UserType::User, _) | (UserType::Org, _) | (UserType::Bot, _) => format!("https://github.com/{}", encode(&gh.login)), }) } else if let Some(ref info) = author.info { |