legs: respect all filters when constructing the return query

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>