1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-26 02:11:09 +00:00

Allow accessing local article with domain for simple markdown plugin

This commit is contained in:
Felix Ableitner 2024-03-08 14:54:50 +01:00
parent fab78f7911
commit 97e9b42e17

View file

@ -102,9 +102,7 @@ impl DbArticle {
.filter(article::dsl::title.eq(title)) .filter(article::dsl::title.eq(title))
.into_boxed(); .into_boxed();
let query = if let Some(domain) = domain { let query = if let Some(domain) = domain {
query query.filter(instance::dsl::domain.eq(domain))
.filter(instance::dsl::domain.eq(domain))
.filter(instance::dsl::local.eq(false))
} else { } else {
query.filter(article::dsl::local.eq(true)) query.filter(article::dsl::local.eq(true))
}; };