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

Allow +1 via email #3943

Merged
merged 4 commits into from Dec 30, 2015
Merged

Allow +1 via email #3943

merged 4 commits into from Dec 30, 2015

Conversation

gdpelican
Copy link
Contributor

Happy to hear some feedback on this one.

@discoursebot
Copy link

You've signed the CLA, gdpelican. Thank you! This pull request is ready for review.

@@ -239,6 +244,18 @@ def wrap_body_in_quote(user_email)
@body = "[quote=\"#{user_email}\"]\n#{@body}\n[/quote]"
end

def create_post_action(email_log, type)
PostAction.act(email_log.user, email_log.post, type)
Copy link
Contributor

Choose a reason for hiding this comment

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

Calling act doesn't seem to ensure the guardian calls are executed.

You'll need to make sure something like this code is executed.

(you'll also need a test for this -- what happens when the guardian check fails?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright, I've applied a guardian call to the create_post_action and added a few specs around it; should be good for another look @eviltrout

eviltrout added a commit that referenced this pull request Dec 30, 2015
@eviltrout eviltrout merged commit f0694d4 into discourse:master Dec 30, 2015
@eviltrout
Copy link
Contributor

Fantastic work, thanks!

@gdpelican gdpelican deleted the plus-one-via-email branch January 11, 2016 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants