Skip to content

Commit e8a5f7c

Browse files
committed
[#3349] fix youtube profile links in user tags
1 parent fe53309 commit e8a5f7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: cgi-bin/DW/External/Site/YouTube.pm

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ sub journal_url {
4141
croak 'need a DW::External::User'
4242
unless $u && ref $u eq 'DW::External::User';
4343

44-
return 'http://' . $self->{hostname} . '/user/' . $u->user;
44+
return sprintf( "https://%s/@%s", $self->{hostname}, $u->user );
4545
}
4646

4747
# argument: DW::External::User
@@ -51,7 +51,7 @@ sub profile_url {
5151
croak 'need a DW::External::User'
5252
unless $u && ref $u eq 'DW::External::User';
5353

54-
return 'http://' . $self->{hostname} . '/user/' . $u->user . "/about";
54+
return sprintf( "https://%s/@%s/about", $self->{hostname}, $u->user );
5555
}
5656

5757
# argument: DW::External::User
@@ -63,7 +63,7 @@ sub badge_image {
6363

6464
# for lack of anything better, let's use the favicon
6565
return {
66-
url => "http://youtube.com/favicon.ico",
66+
url => "https://youtube.com/favicon.ico",
6767
width => 16,
6868
height => 16,
6969
};

0 commit comments

Comments
 (0)