Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-forge/blob/main/social/50route.om # interplane-forge INTERPLANE Forge Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-forge / social / 50route.om` 65 lines ยท 1246 bytes Raw Blame History 1 note social/50route.om: soroute (the social pages and POST actions) and the fragments the server 2 note and ForgeBrowse call (sobar, sofolbar, sostarsof, counts). HTML only through fput/fesc/fnum/ 3 note fputb/flink; every link and form action starts at the base (X-Forge-Base). 4 note ---- small output helpers 5 fn soerr code ulong m view uchar * to long 6 put fkind 0 0 7 fsetti tsterr 8 fput tshe1 9 fesc m 10 fput tshe2 11 ret long code 12 end 13 fn sopis t view uchar * to bool 14 if ne get fpathl 0 len t 15 ret false 16 end 17 for i ulong len t bound 64 18 if ne get fpath i get t i 19 ret false 20 end 21 end 22 ret true 23 end 24 fn sorestis t view uchar * to bool 25 if ne get frestl 0 len t 26 ret false 27 end 28 for i ulong len t bound 64 29 if ne get frest i get t i 30 ret false 31 end 32 end 33 ret true 34 end 35 note sooutid: escaped bytes of string id s from offset a 36 fn sooutid s ulong a ulong to void 37 o = get gsso s 38 l = get gssl s 39 if ge a l 40 ret 41 end 42 for i ulong sub l a bound 4096 43 fescc get gsstr add add o a i 44 end 45 end 46 note souser: a user link (display name) or the shortened DID 47 fn souser d ulong to void 48 fput tsrepo1 49 fputb 50 sonmout d 51 fput tsha2 52 if ne get gsnm d 0 53 sonmout d 54 fput tsha3 55 ret 56 end 57 fput tscode1 58 o = get gsso d 59 for i ulong 16 60 fescc get gsstr add add o len tsdidp i 61 end 62 fput tsell 63 fput tscode2 64 fput tsha3 65 end