Make filtering work for sources endpoint