summaryrefslogtreecommitdiff
path: root/lib/Multi
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2016-12-04 07:58:33 +0100
committerYorhel <git@yorhel.nl>2016-12-04 07:58:33 +0100
commit4eb47a7326de9950822a3482f9418ee344158612 (patch)
tree5701c35351e96a995f4d5254298bedca6b81b1ec /lib/Multi
parent43cfc24de61854711fc82fd420654bf5ee762f48 (diff)
API: Add username filter to "get user" + d11 updates
Diffstat (limited to 'lib/Multi')
-rw-r--r--lib/Multi/API.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Multi/API.pm b/lib/Multi/API.pm
index e43f42f3..566b8ada 100644
--- a/lib/Multi/API.pm
+++ b/lib/Multi/API.pm
@@ -848,6 +848,11 @@ my %GET_USER = (
[ 'int' => 'u.id :op: :value:', {qw|= =|}, range => [0,1e6], process => \&subst_user_id ],
[ inta => 'u.id IN(:value:)', {'=',1}, range => [0,1e6], join => ',', process => \&subst_user_id ],
],
+ username => [
+ [ str => 'u.username :op: :value:', {qw|= = != <>|} ],
+ [ str => 'u.username ILIKE :value:', {'~',1}, process => \'like' ],
+ [ stra => 'u.username IN(:value:)', {'=',1}, join => ',' ],
+ ],
},
);