Skip to content

Preliminary experiments with bookmark word counts.#1

Draft
irrationalpie7 wants to merge 46 commits intomasterfrom
AO3-6471-bookmark-word-counts
Draft

Preliminary experiments with bookmark word counts.#1
irrationalpie7 wants to merge 46 commits intomasterfrom
AO3-6471-bookmark-word-counts

Conversation

@irrationalpie7
Copy link
Owner

This draft pull request is just so I can see what combined changes I've made on this branch

@irrationalpie7 irrationalpie7 force-pushed the AO3-6471-bookmark-word-counts branch from ed2841a to e38d844 Compare October 12, 2025 03:07
# escape_tags_field("tag:1234") => general_tags:1234
def escape_restrictable_fields(query)
# Special-case for the "tag" convenience field name first, then sanitize visibility level.
query.gsub("tag:", "public_tags:").gsub(/(?:(?:public|general)_)?((?:#{RESTRICTABLE_FIELDS})(?:_ids)?):/) do

Check notice

Code scanning / Brakeman

Model attribute used in regular expression. Note

Model attribute used in regular expression.
@irrationalpie7 irrationalpie7 force-pushed the AO3-6471-bookmark-word-counts branch from adbd844 to bc877b1 Compare October 12, 2025 23:46
@irrationalpie7 irrationalpie7 force-pushed the AO3-6471-bookmark-word-counts branch from d4cd191 to 6415a1d Compare November 1, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants