1
0
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:
Pierre HUBERT 2020-07-14 09:17:03 +02:00
parent 38d2dd25d6
commit 161e969966

View File

@ -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:", "")),
})
}