all repos — honk @ 92cd22d3402a8c71a249a83899fde568f0b1a71c

my fork of honk

record starting page name
Ted Unangst tedu@tedunangst.com
Thu, 05 Sep 2019 17:45:10 -0400
commit

92cd22d3402a8c71a249a83899fde568f0b1a71c

parent

db46dcd27cdb611877347ece8df3b1199a8083cd

2 files changed, 4 insertions(+), 2 deletions(-)

jump to
M honk.gohonk.go

@@ -169,8 +169,10 @@ honks = getpublichonks()

} else { userid = u.UserID if r.URL.Path == "/atme" { + templinfo["PageName"] = "atme" honks = gethonksforme(userid) } else { + templinfo["PageName"] = "home" honks = gethonksforuser(userid) honks = osmosis(honks, userid) }
M views/honkpage.htmlviews/honkpage.html

@@ -14,9 +14,9 @@ {{ $BonkCSRF := .HonkCSRF }}

{{ if .TopXID }} <div class="info" id="refreshbox"> <script> -var topxid = { "home" : "{{ .TopXID }}" } +var topxid = { "{{ .PageName }}" : "{{ .TopXID }}" } var honksforpage = { } -var thispagename = "home" +var thispagename = "{{ .PageName }}" function fillinhonks(xhr) { var doc = xhr.responseXML topxid[thispagename] = doc.children[0].children[1].children[0].innerText