complete long ago link
Ted Unangst tedu@tedunangst.com
Sun, 19 Jul 2020 18:57:53 -0400
4 files changed,
5 insertions(+),
3 deletions(-)
M
database.go
→
database.go
@@ -901,7 +901,7 @@ myhonkers := " and honker in (select xid from honkers where userid = ? and (flavor = 'sub' or flavor = 'peep' or flavor = 'presub') and combos not like '% - %')"
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) 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") 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)
M
views/header.html
→
views/header.html
@@ -34,7 +34,7 @@ </details>
<li><a href="/chatter">chatter</a> <li><a href="/o">tags</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 href="/honkers">honkers</a> <li><a href="/hfcs">filters</a>
M
views/honkpage.js
→
views/honkpage.js
@@ -238,6 +238,8 @@ el = document.getElementById("firstlink")
el.onclick = pageswitcher("first", "") el = document.getElementById("savedlink") el.onclick = pageswitcher("saved", "") + el = document.getElementById("longagolink") + el.onclick = pageswitcher("longago", "") relinklinks() window.onpopstate = statechanger history.replaceState(curpagestate, "some title", "")
M
web.go
→
web.go
@@ -120,7 +120,7 @@ honks = osmosis(honks, userid, false)
case "/longago": templinfo["ServerMessage"] = "long ago and far away!" templinfo["PageName"] = "longago" - honks = gethonksforme(userid, 0) + honks = gethonksfromlongago(userid, 0) honks = osmosis(honks, userid, false) case "/events": templinfo["ServerMessage"] = "some recent and upcoming events"