Commit Diff


commit - 29cd802f769378fc5bafa6ceb0167d21a08a5416
commit + b5ebf4c73102fa0f823ff1c0eaad49c387aeb3a5
blob - e1cacc77d7161cae12ff6b97c07687b769093640
blob + 843f5dd7dfffa7f84b7d37c64ec19bfef628b0fe
--- lonk.py
+++ lonk.py
@@ -437,6 +437,14 @@ def page_atme(db_con, client_id, lonk_url, honk_url):
     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():
@@ -455,9 +463,11 @@ def print_gethonks(gethonks_answer, lonk_url, honk_url
 
         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":
@@ -488,6 +498,7 @@ def print_gethonks(gethonks_answer, lonk_url, honk_url
         print("\r")
 
     if gethonks_answer.get("honks"):
+        print("\r")
         _menu()
 
 
@@ -578,6 +589,8 @@ def vgi(cert_hash, raw_url):
         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":