Allow to filter tools/opml by syndicated (?show=F); also allow to 
filter by multiple types

        Patch by afuna. 

diffs (20 lines):

diff -r 4e95cae969d9 -r faf5a504a662 htdocs/tools/opml.bml
--- a/htdocs/tools/opml.bml     Mon Dec 14 16:51:31 2009 +0000
+++ b/htdocs/tools/opml.bml     Mon Dec 14 16:53:59 2009 +0000
@@ -55,11 +55,11 @@
 
         # identity accounts do not have feeds
         next if $w->is_identity;
-        # if we only want to show personal accounts
-        next if $GET{show} eq 'P' and $w->is_community;
-        # if we only want to show communities
-        next if $GET{show} eq 'C' and $w->is_person;
-
+        # filter by account type
+        next if $GET{show} && ! ( $GET{show} =~ /[P]/ && $w->is_person
+                    || $GET{show} =~ /[C]/ && $w->is_community 
+                    || $GET{show} =~ /[YF]/ && $w->is_syndicated );
+                    
         my $title;
         
         # use the username + site abbreviation for each feed's title if we 
have that
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to