complete long ago link
This commit is contained in:
parent
3f7dcaad9e
commit
51c3404e3c
|
@ -901,7 +901,7 @@ func prepareStatements(db *sql.DB) {
|
||||||
stmtHonksForUser = preparetodie(db, selecthonks+"where honks.honkid > ? and honks.userid = ? and dt > ?"+myhonkers+butnotthose+limit)
|
stmtHonksForUser = preparetodie(db, selecthonks+"where honks.honkid > ? and honks.userid = ? and dt > ?"+myhonkers+butnotthose+limit)
|
||||||
stmtHonksForUserFirstClass = preparetodie(db, selecthonks+"where honks.honkid > ? and honks.userid = ? and dt > ? and (what <> 'tonk')"+myhonkers+butnotthose+limit)
|
stmtHonksForUserFirstClass = preparetodie(db, selecthonks+"where honks.honkid > ? and honks.userid = ? and dt > ? and (what <> 'tonk')"+myhonkers+butnotthose+limit)
|
||||||
stmtHonksForMe = preparetodie(db, selecthonks+"where honks.honkid > ? and honks.userid = ? and dt > ? and whofore = 1"+butnotthose+limit)
|
stmtHonksForMe = preparetodie(db, selecthonks+"where honks.honkid > ? and honks.userid = ? and dt > ? and whofore = 1"+butnotthose+limit)
|
||||||
stmtHonksFromLongAgo = preparetodie(db, selecthonks+"where honks.honkid > ? and honks.userid = ? and dt < ? and dt > ? and whofore = 2"+butnotthose+limit)
|
stmtHonksFromLongAgo = preparetodie(db, selecthonks+"where honks.honkid > ? and honks.userid = ? and dt > ? and dt < ? and whofore = 2"+butnotthose+limit)
|
||||||
stmtHonksISaved = preparetodie(db, selecthonks+"where honks.honkid > ? and honks.userid = ? and flags & 4 order by honks.honkid desc")
|
stmtHonksISaved = preparetodie(db, selecthonks+"where honks.honkid > ? and honks.userid = ? and flags & 4 order by honks.honkid desc")
|
||||||
stmtHonksByHonker = preparetodie(db, selecthonks+"join honkers on (honkers.xid = honks.honker or honkers.xid = honks.oonker) where honks.honkid > ? and honks.userid = ? and honkers.name = ?"+butnotthose+limit)
|
stmtHonksByHonker = preparetodie(db, selecthonks+"join honkers on (honkers.xid = honks.honker or honkers.xid = honks.oonker) where honks.honkid > ? and honks.userid = ? and honkers.name = ?"+butnotthose+limit)
|
||||||
stmtHonksByXonker = preparetodie(db, selecthonks+" where honks.honkid > ? and honks.userid = ? and (honker = ? or oonker = ?)"+butnotthose+limit)
|
stmtHonksByXonker = preparetodie(db, selecthonks+" where honks.honkid > ? and honks.userid = ? and (honker = ? or oonker = ?)"+butnotthose+limit)
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<li><a href="/chatter">chatter</a>
|
<li><a href="/chatter">chatter</a>
|
||||||
<li><a href="/o">tags</a>
|
<li><a href="/o">tags</a>
|
||||||
<li><a href="/events">events</a>
|
<li><a href="/events">events</a>
|
||||||
<li><a href="/longago">long ago</a>
|
<li><a id="longagolink" href="/longago">long ago</a>
|
||||||
<li><a id="savedlink" href="/saved">saved</a>
|
<li><a id="savedlink" href="/saved">saved</a>
|
||||||
<li><a href="/honkers">honkers</a>
|
<li><a href="/honkers">honkers</a>
|
||||||
<li><a href="/hfcs">filters</a>
|
<li><a href="/hfcs">filters</a>
|
||||||
|
|
|
@ -238,6 +238,8 @@ function relinklinks() {
|
||||||
el.onclick = pageswitcher("first", "")
|
el.onclick = pageswitcher("first", "")
|
||||||
el = document.getElementById("savedlink")
|
el = document.getElementById("savedlink")
|
||||||
el.onclick = pageswitcher("saved", "")
|
el.onclick = pageswitcher("saved", "")
|
||||||
|
el = document.getElementById("longagolink")
|
||||||
|
el.onclick = pageswitcher("longago", "")
|
||||||
relinklinks()
|
relinklinks()
|
||||||
window.onpopstate = statechanger
|
window.onpopstate = statechanger
|
||||||
history.replaceState(curpagestate, "some title", "")
|
history.replaceState(curpagestate, "some title", "")
|
||||||
|
|
2
web.go
2
web.go
|
@ -120,7 +120,7 @@ func homepage(w http.ResponseWriter, r *http.Request) {
|
||||||
case "/longago":
|
case "/longago":
|
||||||
templinfo["ServerMessage"] = "long ago and far away!"
|
templinfo["ServerMessage"] = "long ago and far away!"
|
||||||
templinfo["PageName"] = "longago"
|
templinfo["PageName"] = "longago"
|
||||||
honks = gethonksforme(userid, 0)
|
honks = gethonksfromlongago(userid, 0)
|
||||||
honks = osmosis(honks, userid, false)
|
honks = osmosis(honks, userid, false)
|
||||||
case "/events":
|
case "/events":
|
||||||
templinfo["ServerMessage"] = "some recent and upcoming events"
|
templinfo["ServerMessage"] = "some recent and upcoming events"
|
||||||
|
|
Loading…
Reference in New Issue