Skip to content

Commit

Permalink
Article published elsewhere can be replaced with a blog post
Browse files Browse the repository at this point in the history
In that case it doesn't get listed in "all articles" as it would be a duplicate.
  • Loading branch information
spaze committed Apr 9, 2024
1 parent 1d304f5 commit 5cbf50e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions site/app/Articles/Articles.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public function getAll(?int $limit = null): array
null AS omitExports
FROM articles a
JOIN article_sources s ON a.key_article_source = s.id_article_source
WHERE
a.key_replaced_with_blog_post IS NULL
UNION ALL
SELECT
bp.id_blog_post,
Expand Down

0 comments on commit 5cbf50e

Please sign in to comment.