mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Set the site when requesting a promoted link.
This lets us do over18 thumbnail hiding correctly.
This commit is contained in:
@@ -53,7 +53,10 @@ r.spotlight.requestPromo = function() {
|
||||
return $.ajax({
|
||||
type: "POST",
|
||||
url: '/api/request_promo',
|
||||
data: {'srnames': this.srnames}
|
||||
data: {
|
||||
'srnames': this.srnames,
|
||||
'r': r.config.post_site
|
||||
}
|
||||
}).pipe(function(promo) {
|
||||
if (promo) {
|
||||
$item = $(promo)
|
||||
|
||||
Reference in New Issue
Block a user