Commit a5d74c7a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Do not preemtively filter resources by their url

Backends will need to make sure that no wrong resources are offered.
This is necessary because when we query by appstream id we might have to
return some resources where we match on their alternative names rather
than the actual.

BUG: 427243
parent a0128388
......@@ -100,9 +100,6 @@ bool AbstractResourcesBackend::Filters::shouldFilter(AbstractResource* res) cons
if(!extends.isEmpty() && !res->extends().contains(extends)) {
return false;
}
if(!resourceUrl.isEmpty() && res->url() != resourceUrl) {
return false;
}
if(!origin.isEmpty() && res->origin() != origin) {
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment