all repos — honk @ 7022da1a0a30c3f0f9b8d5590bfec0b19e1ba779

my fork of honk

complete long ago link
Ted Unangst tedu@tedunangst.com
Sun, 19 Jul 2020 18:57:53 -0400
commit

7022da1a0a30c3f0f9b8d5590bfec0b19e1ba779

parent

6a1af021e57b94ec336b6c737637fa92b1678718

4 files changed, 5 insertions(+), 3 deletions(-)

jump to
M database.godatabase.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.htmlviews/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.jsviews/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.goweb.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"