line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojolicious::Plugin::LinkEmbedder::Link::Text; |
2
|
1
|
|
|
1
|
|
2180
|
use Mojo::Base 'Mojolicious::Plugin::LinkEmbedder::Link'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
3
|
1
|
|
|
1
|
|
127
|
use Mojo::Util (); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
159
|
|
4
|
|
|
|
|
|
|
|
5
|
0
|
|
|
0
|
0
|
|
sub raw_url { shift->url->clone } |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub to_embed { |
8
|
0
|
0
|
|
0
|
0
|
|
return $_[0]->SUPER::to_embed unless $_[0]->{text}; |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
|
|
|
my $self = shift; |
11
|
0
|
|
|
|
|
|
my $media_id = $self->media_id; |
12
|
0
|
|
|
|
|
|
my $text = $self->{text}; |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
return <<" HTML"; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
Hosted by |
18
|
0
|
|
|
|
|
|
@{[$self->provider_name]} |
|
0
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
- |
20
|
0
|
|
|
|
|
|
View raw |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
$text |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
HTML |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |