1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Can get notification settings

This commit is contained in:
2021-04-10 19:12:46 +02:00
parent 7ec2c500e3
commit 2b2b1c9755
7 changed files with 40 additions and 15 deletions

View File

@ -79,12 +79,17 @@ fn db_to_user(res: &database::RowResult) -> ResultBoxError<User> {
security_answer_1: res.get_optional_str("reponse1")?,
security_question_2: res.get_optional_str("question2")?,
security_answer_2: res.get_optional_str("reponse2")?,
// Data cleanup
delete_account_after: res.get_optional_positive_u64("delete_account_after")?,
delete_notifications_after: res.get_optional_positive_u64("delete_notifications_after")?,
delete_comments_after: res.get_optional_positive_u64("delete_comments_after")?,
delete_posts_after: res.get_optional_positive_u64("delete_posts_after")?,
delete_conversation_messages_after: res.get_optional_positive_u64("delete_conversation_messages_after")?,
delete_likes_after: res.get_optional_positive_u64("delete_likes_after")?,
// Conversation settings
allow_notif_conv: res.get_legacy_bool("allow_notif_conv")?,
})
}