commit - 29cd802f769378fc5bafa6ceb0167d21a08a5416
commit + b5ebf4c73102fa0f823ff1c0eaad49c387aeb3a5
blob - e1cacc77d7161cae12ff6b97c07687b769093640
blob + 843f5dd7dfffa7f84b7d37c64ec19bfef628b0fe
--- lonk.py
+++ lonk.py
print_gethonks(gethonks_answer, lonk_url, honk_url)
+def page_longago(db_con, client_id, lonk_url, honk_url):
+ gethonks_answer = honk_url.do_get("gethonks", page="longago")
+ print("20 text/gemini\r")
+ print("# 𝓗 onk: long ago")
+ print("\r")
+ print_gethonks(gethonks_answer, lonk_url, honk_url)
+
+
def print_gethonks(gethonks_answer, lonk_url, honk_url):
def _menu():
print(f"=> {honk_url.build_url(path='honkers')} honkers\r")
print(f"=> {lonk_url.build('search')} search\r")
+ print(f"=> {lonk_url.build('longago')} long ago\r")
_menu()
print("\r")
+ print("\r")
for honk in gethonks_answer.get("honks") or []:
if honk.get("What") == "bonked":
print("\r")
if gethonks_answer.get("honks"):
+ print("\r")
_menu()
authenticated(cert_hash, lonk_url, page_atme)
elif lonk_url.page == "search":
authenticated(cert_hash, lonk_url, page_search)
+ elif lonk_url.page == "longago":
+ authenticated(cert_hash, lonk_url, page_longago)
elif lonk_url.page == "bonk":
authenticated(cert_hash, lonk_url, bonk)
elif lonk_url.page == "ask_server":