- let read = data.read;
- let update_mention =
- move |conn: &mut _| PersonMention::update_read(conn, person_mention_id, read);
- blocking(context.pool(), update_mention)
- .await?
- .map_err(|e| LemmyError::from_error_message(e, "couldnt_update_comment"))?;
+ let read = Some(data.read);
+ blocking(context.pool(), move |conn| {
+ PersonMention::update(conn, person_mention_id, &PersonMentionUpdateForm { read })
+ })
+ .await?
+ .map_err(|e| LemmyError::from_error_message(e, "couldnt_update_comment"))?;