Permalink
Browse files

fixes

  • Loading branch information...
Alex Gaynor
Alex Gaynor committed Nov 4, 2012
1 parent 867677b commit 6a5391df32a9bb6d95a3c13862fb479241bd4410
Showing with 3 additions and 1 deletion.
  1. +2 −0 app.py
  2. +1 −1 templates/gamethread.txt
View
2 app.py
@@ -183,6 +183,8 @@ def home():
@app.route("/reddit-stream/")
def reddit_stream():
+ if request.referrer is None:
+ return "This link works via magic. Click it from the normal comment page."
return redirect(re.sub("reddit.com", "reddit-stream.com", request.referrer))
View
@@ -9,4 +9,4 @@
-----
-[Reddit Stream](http://{{ host }}/reddit-stream/)
+[Reddit Stream](http://{{ host }}/reddit-stream/) (You must click this link from the comment page.)

0 comments on commit 6a5391d

Please sign in to comment.