Differences From
Artifact [880ce531e5]:
25 25 end
26 26
27 27 if path.ct >= 3 and path(1):cmp('a') then
28 28 var id, idok = lib.math.shorthand.parse(path(2).ptr, path(2).ct)
29 29 if not idok then goto e404 end
30 30 var art = co.srv:artifact_fetch(uid, id)
31 31 if not art then goto e404 end
32 + defer art:free()
32 33 if path.ct == 3 then
33 34 -- sniff out the artifact type and display the appropriate viewer
34 35 var artid = cs(art(0).url)
35 36 var btns: lib.str.acc
36 37 if owner then
37 38 btns:pcompose(&co.srv.pool,'<a class="neg button" href="',pfx,'/media/a/',artid,'/del">delete</a><a class="button" href="',pfx,'/media/a/',artid,'/edit">alter</a>')
38 39 else