Skip to content

Commit

Permalink
Remove 'ai composition' tagged images from showing up in Trending ima…
Browse files Browse the repository at this point in the history
…ges (#294)

* Remove 'ai composition' tagged images from showing up in Trending images

* Fixed code formatting
  • Loading branch information
delly-bud authored Dec 29, 2024
1 parent 7b8d428 commit d6dc172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/philomena_web/controllers/activity_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defmodule PhilomenaWeb.ActivityController do
range: %{first_seen_at: %{gt: "now-3d"}}
},
must_not: [
%{terms: %{tag_ids: [589_483]}}
%{terms: %{tag_ids: [589_483, 749_983]}}
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion lib/philomena_web/templates/activity/index.html.slime
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
' Issues? Want to chat?
a href="/pages/contact" Contact us!
.block.hide-mobile
a.block__header--single-item.center href="/search?q=first_seen_at.gt:3 days ago, -ai generated&sf=wilson_score&sd=desc"
a.block__header--single-item.center href="/search?q=first_seen_at.gt:3 days ago, -ai generated, -ai composition&sf=wilson_score&sd=desc"
' Trending Images
.block__content.flex.flex--centered.flex--wrap.image-flex-grid
= for image <- @top_scoring do
Expand Down

0 comments on commit d6dc172

Please sign in to comment.