Changeset 688

Show
Ignore:
Timestamp:
06/04/08 19:57:26 (7 months ago)
Author:
mpaschal
Message:

Oops, fix wists thumbnail url thing too

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ActionStreams/plugins/ActionStreams/config.yaml

    r686 r688  
    3939    pre_build_action_streams_event.netflix_queue: $ActionStreams::ActionStreams::Plugin::fix_netflix_queue_prefix_thumb 
    4040    pre_build_action_streams_event.kongregate_achievements: $ActionStreams::ActionStreams::Plugin::fix_kongregate_achievement_title_thumb 
     41    pre_build_action_streams_event.wists_wists: $ActionStreams::ActionStreams::Plugin::fix_wists_thumb 
    4142object_types: 
    4243    profileevent: ActionStreams::Event 
  • trunk/ActionStreams/plugins/ActionStreams/lib/ActionStreams/Plugin.pm

    r684 r688  
    516516} 
    517517 
     518sub fix_wists_thumb { 
     519    my ($cb, $app, $item, $event, $author, $profile) = @_; 
     520    # Grab the wists thumbnail out. 
     521    my $thumb = delete $item->{thumbnail}; 
     522    if ($thumb =~ m{ (http://cache.wists.com/thumbnails/ [^"]+ ) }xms) { 
     523        $item->{thumbnail} = $1; 
     524    } 
     525} 
     526 
    518527sub tag_stream_action { 
    519528    my ($ctx, $args, $cond) = @_;