Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow firehose to filter to multiple types

  • Loading branch information...
commit a864d8d93756e0ae18765cfca4cb214adf92c1c7 1 parent da047e5
@tvroom tvroom authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugins/FireHose/FireHose.pm
View
4 plugins/FireHose/FireHose.pm
@@ -2566,7 +2566,7 @@ sub getAndSetOptions {
$not = "not_";
$_ =~ s/^-//g;
}
- if ($validator->{type}->{$_} && !defined $fh_options->{type}) {
+ if ($validator->{type}->{$_}) {
push @{$fh_options->{$not."type"}}, $_;
} elsif ($user->{is_admin} && $validator->{categories}{$_} && !defined $fh_options->{category}) {
$fh_options->{category} = $_;
@@ -2747,6 +2747,8 @@ sub getAndSetOptions {
$options->{smalldevices} = 1 if $self->shouldForceSmall();
$options->{limit} = $self->getFireHoseLimitSize($options->{mode}, $pagesize, $options->{smalldevices}, $options);
+#use Data::Dumper;
+#print STDERR Dumper($options);
return $options;
}
Please sign in to comment.
Something went wrong with that request. Please try again.