Skip to content

Commit

Permalink
change tag limit to 40
Browse files Browse the repository at this point in the history
closes #20
  • Loading branch information
avoonix authored Oct 21, 2023
1 parent 18e525c commit c938fb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/misc/util/createTagQuery.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { BlacklistMode } from "@/services/types";

const E621_API_TAG_LIMIT = 40;

// TODO: replace rating:e with rating:explicit ... when adding tags
// str
// .replace(/\brating:e\b/g, "rating:explicit")
Expand Down Expand Up @@ -59,5 +61,5 @@ export const createTagQuery = (
// }
// }
// }
return allTags.slice(0, 6).join(" "); // limit tags + blacklisted tags to 6
return allTags.slice(0, E621_API_TAG_LIMIT).join(" "); // limit tags + blacklisted tags to `E621_API_TAG_LIMIT`
};

1 comment on commit c938fb5

@vercel
Copy link

@vercel vercel bot commented on c938fb5 Oct 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

material-e621 – ./

material-e621-git-master-avoonix.vercel.app
material-e621-avoonix.vercel.app
material-e621.vercel.app

Please sign in to comment.