check optout on random line

This commit is contained in:
boring_nick 2023-07-12 20:44:37 +03:00
parent 3dd4fb17b6
commit 7d2a72bcde
1 changed files with 2 additions and 0 deletions

View File

@ -331,6 +331,8 @@ async fn random_user_line(
ChannelIdType::Id => channel,
};
app.check_opted_out(&channel_id, Some(&user_id))?;
let random_line = read_random_user_line(&app.db, &channel_id, &user_id).await?;
let stream = LogsStream::new_provided(vec![random_line])?;