mirror of
https://github.com/Nutomic/ibis.git
synced 2024-11-29 13:51:09 +00:00
Allow accessing local article with domain for simple markdown plugin
This commit is contained in:
parent
fab78f7911
commit
97e9b42e17
1 changed files with 1 additions and 3 deletions
|
@ -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))
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue