Skip to content

Commit

Permalink
Add hashtag limit to feed
Browse files Browse the repository at this point in the history
  • Loading branch information
rudyfraser committed Dec 19, 2024
1 parent 7bcaf2b commit 8a1cd42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rsky-feedgen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rsky-feedgen"
version = "1.1.1"
version = "1.1.2"
authors = ["Rudy Fraser <[email protected]>"]
description = "A framework for building AT Protocol feed generators, in Rust."
license = "Apache-2.0"
Expand Down
1 change: 1 addition & 0 deletions rsky-feedgen/src/apis/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ pub async fn queue_creation(
!hashtags.contains("#private") &&
!hashtags.contains("#nofeed") &&
!hashtags.contains("#removefromblacksky") &&
hashtags.len() < env_int("FEEDGEN_HASHTAG_LIMIT").unwrap_or(4) &&
!contains_explicit_slurs(post_text_original.as_str()) {
let uri_ = &new_post.uri;
let seq_ = &new_post.sequence;
Expand Down

0 comments on commit 8a1cd42

Please sign in to comment.