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

Issues #661 - Pokeball flair include #3 reminder #675

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api/controllers/FlairController.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ module.exports = {

// Send a PM to let them know application was accepted.
var pmContent = 'Your application for ' + Flairs.formattedName(app.flair) + ' flair on /r/' + app.sub + ' has been approved.' + warning;
if(app.flair == 'pokeball'){
pmContent = pmContent + "\n\n Now that you are able to trade events and shinies, please remember to take into consideration the following:\n\n**Rule 3 - Full details must be posted for shiny and event Pokémon.**\n\nFull details are required to be posted for all shiny and event Pokémon:\n\n* **3A** The Pokémon's OT and ID\n\n* **3B** How you obtained the Pokémon\n\n* **3C** Disclosure, if applicable\n\n* [A detailed list for this rule can be found here](https://wk.reddit.com/r/pokemontrades/wiki/rules#wiki_rule_3_-_full_details_must_be_posted_for_valuable_pok.E9mon.)";
}
promises.push(Reddit.sendPrivateMessage(refreshToken, 'FlairHQ Notification', pmContent, user.name));
promises.push(Application.destroy({id: req.allParams().id}));
await* promises;
Expand Down