add: journals/notes database interfaces
This commit is contained in:
parent
0f48a46c40
commit
102ea0ee35
14 changed files with 386 additions and 6 deletions
|
@ -1620,7 +1620,14 @@ impl DataManager {
|
|||
|
||||
// create notification for question owner
|
||||
// (if the current user isn't the owner)
|
||||
if (question.owner != data.owner) && (question.owner != 0) {
|
||||
if (question.owner != data.owner)
|
||||
&& (question.owner != 0)
|
||||
&& (!owner.settings.private_profile
|
||||
| self
|
||||
.get_userfollow_by_initiator_receiver(data.owner, question.owner)
|
||||
.await
|
||||
.is_ok())
|
||||
{
|
||||
self.create_notification(Notification::new(
|
||||
"Your question has received a new answer!".to_string(),
|
||||
format!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue