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:
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))
|
||||
.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))
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue