joshfrench / rakismet

Easy Akismet and TypePad AntiSpam integration for Rails
MIT License
355 stars 46 forks source link

permalink parameter is sent as comment_permalink #46

Closed cfinke closed 7 years ago

cfinke commented 7 years ago

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 https://github.com/joshfrench/rakismet/blob/c19ded8f10704f0924f37b1cd48cadd58ba569fe/spec/models/rakismet_model_spec.rb#L11

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 commented 7 years ago

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

yukster commented 7 years ago

Thanks for the quick turnaround!