Merge pull request #22853 from MrStonedOne/patch-283

[s]Throttles preferences hrefs
This commit is contained in:
oranges
2017-01-09 08:59:16 +13:00
committed by GitHub
+7 -1
View File
@@ -19,6 +19,7 @@
If you have any questions about this stuff feel free to ask. ~Carn
*/
/client/Topic(href, href_list, hsrc)
var/static/inprefs = FALSE
if(!usr || usr != mob) //stops us calling Topic for somebody else's client. Also helps prevent usr=null
return
// asset_cache
@@ -45,7 +46,12 @@
if("usr")
hsrc = mob
if("prefs")
return prefs.process_link(usr,href_list)
if (inprefs)
return
inprefs = TRUE
. = prefs.process_link(usr,href_list)
inprefs = FALSE
return
if("vars")
return view_var_Topic(href,href_list,hsrc)