please include function ai_postTriple. static S ai_postTriple_verbose(T3<S> triple) { // check, clean print("ai_postTriple: " + sfu(triple)); ping(); if (triple_anyPartNull(triple)) null; triple = trimTriple(triple); if (!ai_tripleAllowedToPost(triple)) { print("ai_postTriple: not allowed"); null; // fail("No"); } // existing? if (has(triple)) { print("ai_postTriple: exists"); null; } // invalid? if (has(ai_tripleToInvalid(triple))) { print("ai_postTriple: invalid"); null; } // post handler? print("ai_postTriple: posting"); AI_PostHandler handler = ai_postHandler(); if (handler != null) ret handler.postTriple(triple); else { // post web the normal way Web web = webFromTriple(triple); Bool ver = ai_postTriple_verified!; if (ver != null) web.unverified = !ver; postSoftwareMadeWeb(web); ret web.globalID(); } } static S ai_postTriple_verbose(S a, S b, S c) { ret ai_postTriple_verbose(t3(a, b, c)); }
Began life as a copy of #1011399
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1012201 |
Snippet name: | ai_postTriple_verbose |
Eternal ID of this version: | #1012201/3 |
Text MD5: | 0ac9b291a44a3001380945110490a811 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-26 20:45:29 |
Source code size: | 1078 bytes / 49 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 415 / 429 |
Version history: | 2 change(s) |
Referenced in: | [show references] |