Skip to content

Commit

Permalink
fix sub
Browse files Browse the repository at this point in the history
  • Loading branch information
tikitko committed Jan 24, 2025
1 parent 1c9e90c commit 5c565d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blog-server-services/src/impls/telegram_updates_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ impl Publish<NewPostPublished> for TelegramUpdatesService {
return;
};
for author in authors {
if author.base.notification_subscribed == Some(0) {
continue;
}
let Some(author_telegram_id) = author.base.telegram_id else {
continue;
};
Expand Down

0 comments on commit 5c565d1

Please sign in to comment.