Remove debugging prints
This commit is contained in:
parent
2c732db22d
commit
18d1f3ea87
|
@ -34,7 +34,6 @@ local function edit_post(req)
|
||||||
local pasteas = assert(http_argument_get_string(req,"pasteas"))
|
local pasteas = assert(http_argument_get_string(req,"pasteas"))
|
||||||
local markup = assert(http_argument_get_string(req,"markup"))
|
local markup = assert(http_argument_get_string(req,"markup"))
|
||||||
local unlisted = http_argument_get_string(req,"unlisted") == "on"
|
local unlisted = http_argument_get_string(req,"unlisted") == "on"
|
||||||
print("unlisted was:",unlisted)
|
|
||||||
local tags_str = http_argument_get_string(req,"tags")
|
local tags_str = http_argument_get_string(req,"tags")
|
||||||
stmnt_author_of:bind_names{
|
stmnt_author_of:bind_names{
|
||||||
id = storyid
|
id = storyid
|
||||||
|
|
|
@ -44,7 +44,7 @@ local function get_site_home(req, loggedin)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
local function get_author_home(req)
|
local function get_author_home(req)
|
||||||
print("Looking at author home...")
|
--print("Looking at author home...")
|
||||||
local host = http_request_get_host(req)
|
local host = http_request_get_host(req)
|
||||||
local subdomain = host:match("([^\\.]+)")
|
local subdomain = host:match("([^\\.]+)")
|
||||||
stmnt_author_bio:bind_names{author=subdomain}
|
stmnt_author_bio:bind_names{author=subdomain}
|
||||||
|
@ -64,7 +64,7 @@ local function get_author_home(req)
|
||||||
stmnt_author:bind_names{author=subdomain}
|
stmnt_author:bind_names{author=subdomain}
|
||||||
local stories = {}
|
local stories = {}
|
||||||
for id, title, time, hits, unlisted, hash in util.sql_rows(stmnt_author) do
|
for id, title, time, hits, unlisted, hash in util.sql_rows(stmnt_author) do
|
||||||
print("Looking at:",id,title,time,hits,unlisted)
|
--print("Looking at:",id,title,time,hits,unlisted)
|
||||||
if unlisted == 1 and author == subdomain then
|
if unlisted == 1 and author == subdomain then
|
||||||
local url = util.encode_id(id) .. "?pwd=" .. util.encode_unlisted(hash)
|
local url = util.encode_id(id) .. "?pwd=" .. util.encode_unlisted(hash)
|
||||||
table.insert(stories,{
|
table.insert(stories,{
|
||||||
|
|
Loading…
Reference in New Issue