1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2024-11-25 22:11:10 +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))
.into_boxed();
let query = if let Some(domain) = domain {
query
.filter(instance::dsl::domain.eq(domain))
.filter(instance::dsl::local.eq(false))
query.filter(instance::dsl::domain.eq(domain))
} else {
query.filter(article::dsl::local.eq(true))
};