Skip to content

Commit a26dfec

Browse files
committed
dont-show-posted
1 parent 0b0d1fc commit a26dfec

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [Unreleased]
1010
### Added
11-
- added changelog page
12-
- features to the pro plan on pricing page
11+
- Pages
12+
- added changelog page
13+
- features to the pro plan on pricing page
1314
- Monitoring
1415
- Sentry Agent Monitoring
1516

1617
### Fixed
1718
- fixed `FieldError` on publish history page
19+
- Posted posts should not appear on SEO Optimized and Eye Catching post pages.
1820

1921
## [0.0.8] - 2025-11-23
2022

core/views.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,12 @@ def get_context_data(self, **kwargs):
637637
}
638638
)
639639

640+
has_posted_blog_post = any(
641+
blog_post.posted for blog_post in suggestion.generated_blog_posts.all()
642+
)
643+
if has_posted_blog_post:
644+
continue
645+
640646
if suggestion.archived:
641647
archived_suggestions.append(suggestion)
642648
else:
@@ -693,6 +699,12 @@ def get_context_data(self, **kwargs):
693699
}
694700
)
695701

702+
has_posted_blog_post = any(
703+
blog_post.posted for blog_post in suggestion.generated_blog_posts.all()
704+
)
705+
if has_posted_blog_post:
706+
continue
707+
696708
if suggestion.archived:
697709
archived_suggestions.append(suggestion)
698710
else:

0 commit comments

Comments
 (0)