Skip to content

Commit

Permalink
Spam button for /r/spam closure (#4242)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmcgarry authored and erikdesjardins committed May 16, 2017
1 parent 8bd3b7d commit 5419768
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/modules/spamButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function addSpamButton(thing) {
const a = document.createElement('a');
a.setAttribute('class', 'option');
a.setAttribute('title', 'Report this user as a spammer');
a.href = `/r/spam/submit?url=${authorElement.href}&title=overview for ${authorName}`;
a.href = `/message/compose?to=reddit.com&subject=spam&message=${authorElement.href}`;
a.target = '_blank';
a.rel = 'noopener noreferer';
a.textContent = 'rts';
Expand Down
2 changes: 1 addition & 1 deletion tests/spamButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
.click('.moduleToggle')
.url('https://www.reddit.com/r/RESIntegrationTests/comments/5ui5yr/spam_button/')
.waitForElementVisible('#siteTable')
.assert.attributeContains('.thing.link .buttons a.option', 'href', '/r/spam/submit?url=https://www.reddit.com/user/erikdesjardins')
.assert.attributeContains('.thing.link .buttons a.option', 'href', '/message/compose?to=reddit.com&subject=spam&message=https://www.reddit.com/user/erikdesjardins')
.end();
},
};

0 comments on commit 5419768

Please sign in to comment.