Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

FEATURE: Hide Staticman POST URL in Go-HTML template #63

Closed
VincentTam opened this issue Aug 15, 2019 · 1 comment
Closed

FEATURE: Hide Staticman POST URL in Go-HTML template #63

VincentTam opened this issue Aug 15, 2019 · 1 comment

Comments

@VincentTam
Copy link
Collaborator

Feature Request

Is your feature request related to a problem?

Staticman spam is a known issue for years.

  1. Spam everyday, another way to filter than Akismet? eduardoboucas/staticman#175
  2. entries have addition unset fields eduardoboucas/staticman#176 (comment)

Despite Staticman's release of v3, the problem is still happening: https://github.com/zinefer/zinefer.github.com/pulls?utf8=%E2%9C%93&q=is%3Apr+label%3ASpam.

Solution

Move the form action URL from the Go-HTML template to JavaScript assets.

Alternatives

Use reCAPTCHA, but there's no guarantee for this: see https://gitlab.io/pcercueil/

Additional Context

  1. staticmanapp 404 on GitHub? eduardoboucas/staticman#306
  2. Anti-spam tips: https://discourse.gohugo.io/t/disqus-alternatives/2948/42?u=vincenttam
@VincentTam VincentTam self-assigned this Aug 15, 2019
VincentTam added a commit to VincentTam/hugo-future-imperfect-slim that referenced this issue Aug 17, 2019
which is in turn a port from halogenical/beautifulhugo#222.  Introduced true
nested comments with reply functionality.

1. Reply target anchors to easily jump between replies.
2. Interactive reply target display with Gravatar and name.
3. Improved input type for "website" field.
4. Implemented FR pacollins#63 to construct POST URL in JS.
5. Clearer instructions for Google reCAPTCHA v2.
6. Introduced some SCSS variables for layout control
7. Fixed missing "id" attribute in each comment.
8. Fixed missing translation UI text for Staticman forms.
9. Changed default API endpoint to the one serving @staticmanlab due to
eduardoboucas/staticman#307.
VincentTam added a commit that referenced this issue Aug 22, 2019
* Staticman nested comments support from Huginn

which is in turn a port from halogenical/beautifulhugo#222.  Introduced true
nested comments with reply functionality.

1. Reply target anchors to easily jump between replies.
2. Interactive reply target display with Gravatar and name.
3. Improved input type for "website" field.
4. Implemented FR #63 to construct POST URL in JS.
5. Clearer instructions for Google reCAPTCHA v2.
6. Introduced some SCSS variables for layout control
7. Fixed missing "id" attribute in each comment.
8. Fixed missing translation UI text for Staticman forms.
9. Changed default API endpoint to the one serving @staticmanlab due to
eduardoboucas/staticman#307.

* Added image alt text in response to the review bot

Gravatar alt text wasn't there in the original code, but I agree with the bot.

* Fixed clearForm() to clear fields after submit

* Set opacity to 0.5 when submitted

* Regenerated resources

* Fixed clearForm() again to empt textarea

* Corrected Eng submission msg
@VincentTam
Copy link
Collaborator Author

Closed via #69.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant