Merged changes from master
This commit is contained in:
+3
-8
@@ -125,9 +125,9 @@ sub publish_feed_items {
|
||||
my $content = $update->{'hashtags'};
|
||||
|
||||
if( $params{'embed_image'} and length $update->{'image'} ){
|
||||
my $image_link = '[](' . $update->{'link'} . ')';
|
||||
$image_link .= ')';
|
||||
$content = "$image_link\n$content";
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ sub get_feed_items {
|
||||
push ( @hashtags, @categories );
|
||||
}
|
||||
|
||||
# extract image link and hover text from description if it exists
|
||||
# extract image link and hover text if it exists
|
||||
if( defined $item->{'description'} ){
|
||||
$item->{'description'} =~ / src='(https?:\/\/[^']+)/ unless $item->{'description'} =~ / src="(https?:\/\/[^"]+)/;
|
||||
|
||||
@@ -290,11 +290,6 @@ sub get_feed_items {
|
||||
}
|
||||
}
|
||||
|
||||
# extract the image link from the enclosure tag if it exists
|
||||
if( not length $image and defined $item->{'enclosure'} and defined $item->{'enclosure'}->{'type'} and $item->{'enclosure'}->{'type'} =~ /^image\// ){
|
||||
$image = $item->{'enclosure'}->{'url'} if defined $item->{'enclosure'}->{'url'};
|
||||
}
|
||||
|
||||
@hashtags = sort @hashtags;
|
||||
|
||||
if( defined $item->{'guid'} ){
|
||||
|
||||
Reference in New Issue
Block a user