Skip to content

Commit

Permalink
Add MetaFilter favorites stream
Browse files Browse the repository at this point in the history
  • Loading branch information
markpasc committed May 28, 2009
1 parent 9ad9bb7 commit 9f7de5a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions plugins/ActionStreams/config.yaml
Expand Up @@ -51,6 +51,7 @@ callbacks:
pre_build_action_streams_event.iusethis_events: $ActionStreams::ActionStreams::Fix::iusethis_event_title
pre_build_action_streams_event.kongregate_achievements: $ActionStreams::ActionStreams::Fix::kongregate_achievement_title_thumb
pre_build_action_streams_event.magnolia_links: $ActionStreams::ActionStreams::Fix::magnolia_link_notes
pre_build_action_streams_event.metafilter_favorites: $ActionStreams::ActionStreams::Fix::metafilter_favorites_titles
pre_build_action_streams_event.netflix_queue: $ActionStreams::ActionStreams::Fix::netflix_queue_prefix_thumb
pre_build_action_streams_event.netflix_recent: $ActionStreams::ActionStreams::Fix::netflix_recent_prefix_thumb
pre_build_action_streams_event.p0pulist_stuff: $ActionStreams::ActionStreams::Fix::p0pulist_stuff_urls
Expand Down
5 changes: 5 additions & 0 deletions plugins/ActionStreams/lib/ActionStreams/Fix.pm
Expand Up @@ -58,6 +58,11 @@ sub iusethis_event_title {
$item->{title} =~ s{ \A \w+ \s* }{}xms;
}

sub metafilter_favorites_titles {
my ($cb, $app, $item, $event, $author, $profile) = @_;
$item->{title} =~ s{ \A [^:]+ : \s* }{}xms;
}

sub netflix_recent_prefix_thumb {
my ($cb, $app, $item, $event, $author, $profile) = @_;
# Remove the 'Shipped:' or 'Received:' prefix.
Expand Down
5 changes: 5 additions & 0 deletions plugins/ActionStreams/services.yaml
Expand Up @@ -150,6 +150,11 @@ magnolia:
url: http://ma.gnolia.com/people/{{ident}}
service_type: links
deprecated: 1
metafilter:
name: MetaFilter
url: http://www.metafilter.com/user/{{ident}}
ident_label: User Number
ident_example: 11039
mog:
name: MOG
url: http://mog.com/{{ident}}
Expand Down
11 changes: 11 additions & 0 deletions plugins/ActionStreams/streams.yaml
Expand Up @@ -518,6 +518,17 @@ magnolia:
atom:
tags: "category[@scheme='http://ma.gnolia.com/tags']/@term"
note: content
metafilter:
favorites:
name: Favorites
description: Posts you saved as favorites
html_form: '[_1] saved <a href="[_2]">[_3]</a> as a favorite'
html_params:
- url
- title
url: 'http://www.metafilter.com/favorites/{{ident}}/posts/rss'
rss:
created_on: ''
netflix:
queue:
name: Queue
Expand Down

0 comments on commit 9f7de5a

Please sign in to comment.