Commits

Anonymous committed ea7263a

fix embed

Comments (0)

Files changed (1)

friendpaste/views.py

     if p is None:
         raise NotFound
 
-    p = Privacy.for_paste(local.db, id)
-    if p.privacy == "private":
-        if p.password != make_hash(request.values.get('password', '')):
+    priv = Privacy.for_paste(local.db, id)
+    if priv.privacy == "private":
+        if priv.password != make_hash(request.values.get('password', '')):
             raise Unauthorized
 
 
-    theme = request.session.get('settings_theme', 'default')
-    response = render_response('paste/embed.js', snippet=p, theme=theme)
+    response = render_response('paste/embed.js', snippet=p, theme='default')
     response.headers['content-type'] = 'application/javascript'
     return response