Skip to content

Code. Add get params to bot detector wrapper#50

Merged
Glomberg merged 4 commits into
devfrom
add-get-to-url.ab
Jun 8, 2026
Merged

Code. Add get params to bot detector wrapper#50
Glomberg merged 4 commits into
devfrom
add-get-to-url.ab

Conversation

@alexander-b-clean
Copy link
Copy Markdown
Contributor

Comment thread lib/CleantalkAntispam.php Outdated
Copy link
Copy Markdown
Member

@Glomberg Glomberg left a comment

Choose a reason for hiding this comment

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

Comment thread lib/CleantalkAntispam.php Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a manually maintained library version and appends it as a query parameter to the bot detector wrapper URL for frontend cache/version tracking.

Changes:

  • Introduces APBCT_VERSION in the package entrypoint.
  • Uses that version in getFrontendHTMLCode() when building the bot detector script URL.
  • Documents the manual version bump process in the README.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
README.md Documents where the library version is defined and how it is updated.
cleantalk-antispam.php Adds the APBCT_VERSION constant.
lib/CleantalkAntispam.php Appends the version query parameter to the bot detector script URL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/CleantalkAntispam.php Outdated
Comment thread cleantalk-antispam.php Outdated
Copy link
Copy Markdown
Member

@Glomberg Glomberg left a comment

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@AntonV1211 AntonV1211 left a comment

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread lib/CleantalkAntispam.php
Comment thread lib/CleantalkAntispam.php
@Glomberg Glomberg merged commit 96bca84 into dev Jun 8, 2026
2 checks passed
@Glomberg Glomberg deleted the add-get-to-url.ab branch June 8, 2026 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants