Changeset 1562 for trunk

Show
Ignore:
Timestamp:
06/26/09 23:35:56 (5 months ago)
Author:
mpaschal
Message:

Don't look for a thumbnail URL where there isn't one
(prevents UUV in Kongregate achievements stream)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ActionStreams/plugins/ActionStreams/lib/ActionStreams/Fix.pm

    r1547 r1562  
    110110 
    111111    # Pick the actual achievement badge out of the inline CSS. 
    112     my $thumb = delete $item->{thumbnail}; 
     112    my $thumb = delete $item->{thumbnail} || q{}; 
    113113    if ($thumb =~ m{ background-image: \s* url\( ([^)]+) }xms) { 
    114114        $item->{thumbnail} = $1;