diff --git a/lib/domain/libimagdiary/src/is_in_diary.rs b/lib/domain/libimagdiary/src/is_in_diary.rs index 8b48e1cc..1b10c1fe 100644 --- a/lib/domain/libimagdiary/src/is_in_diary.rs +++ b/lib/domain/libimagdiary/src/is_in_diary.rs @@ -43,11 +43,11 @@ impl IsInDiary for Entry { impl IsInDiary for StoreId { fn is_in_diary(&self, name: &str) -> bool { - self.local().starts_with(format!("diary/{}", name)) + self.is_in_collection(&["diary", name]) } fn is_a_diary_entry(&self) -> bool { - self.local().starts_with("diary") + self.is_in_collection(&["diary"]) } }