mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-27 22:18:51 +00:00
Fix a issue with old comments
This commit is contained in:
parent
38d2dd25d6
commit
161e969966
@ -57,7 +57,8 @@ fn db_to_comment(row: &database::RowResult) -> ResultBoxError<Comment> {
|
||||
user_id: row.get_user_id("ID_personne")?,
|
||||
post_id: row.get_u64("ID_texte")?,
|
||||
content: row.get_str("commentaire")?,
|
||||
image_path: row.get_optional_str("image_commentaire")?,
|
||||
image_path: row.get_optional_str("image_commentaire")?
|
||||
.map(|f| f.replace("file:", "")),
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user