Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permalink parameter is sent as comment_permalink #46

Closed
cfinke opened this issue Jul 14, 2017 · 2 comments
Closed

permalink parameter is sent as comment_permalink #46

cfinke opened this issue Jul 14, 2017 · 2 comments

Comments

@cfinke
Copy link

cfinke commented Jul 14, 2017

I don't know Ruby all that well, but it appears that the permalink parameter is actually being sent as comment_permalink, based on its inclusion in arrays like the one at

[:comment_type, :author, :author_email, :author_url, :content, :permalink].each do |field|

it "should have default mappings" do
    [:comment_type, :author, :author_email, :author_url, :content, :permalink].each do |field|
      fieldname = field.to_s =~ %r(^comment_) ? field : "comment_#{field}".intern
      AkismetModel.akismet_attrs[fieldname].should eql(field)
     end
    AkismetModel::akismet_attrs[:user_role].should eql(:user_role)
end

Can you confirm whether this is the case, and if so, just send the value in the permalink argument?

@joshfrench
Copy link
Owner

Hey, good catch! I just pushed v1.5.4 which should fix this.

@yukster
Copy link

yukster commented Jul 14, 2017

Thanks for the quick turnaround!

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

No branches or pull requests

3 participants