check optout on random line
This commit is contained in:
parent
3dd4fb17b6
commit
7d2a72bcde
|
@ -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])?;
|
||||
|
||||
|
|
Loading…
Reference in New Issue