Differences From Artifact [c64d390bdc]:
- File api/webfinger.t — part of check-in [26937ca853] at 2021-01-25 12:40:08 on branch trunk — first steps towards litepub support (user: lexi, size: 1282) [annotate] [blame] [check-ins using]
To Artifact [06153fd078]:
- File api/webfinger.t — part of check-in [c774e2c5a9] at 2021-01-28 00:51:21 on branch trunk — wrote mimelib, continued iterating on litepub support; tweets can now be imported into honk (user: lexi, size: 1348) [annotate] [blame] [check-ins using]
10 10 "type": "text/html", "href": @$pfp } 11 11 ] 12 12 }]] 13 13 14 14 local terra 15 15 webfinger(co: &lib.srv.convo) 16 16 var res = co:pgetv('resource') 17 + lib.dbg('got webfinger request for resource ', {res.ptr,res.ct}) 17 18 if (not res) or not res:startswith 'acct:' then goto err end 18 19 19 20 var acct = res + 5 20 21 var svp = lib.str.find(acct, '@') 21 22 if svp:ref() then 22 23 acct.ct = (svp.ptr - acct.ptr) 23 24 svp:advance(1)