Warning: session_start(): open(/var/lib/php/sessions/sess_56fg9cb7jn3v7unsev3g8jc6s0, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
cmodule2 QuestionTripleTest > DynPrintLog {
switchable S multiBotModule;
switchable long mainPostID;
transient GazellePost mainPost, variation, q1, q2, a1, a2;
start-thread {
mainPost = importPost(dm_call(multiBotModule, "getPost", mainPostID));
print(+mainPost);
if (mainPost == null) ret;
variation = importPost(first((L) dm_call(multiBotModule, "repliesWithTag", mainPost.importedFrom, "variation of")));
print(+variation);
if (variation == null) ret;
q1 = replyWithType(mainPost, "Question");
print(+q1);
q2 = replyWithType(variation, "Question");
print(+q2);
}
GazellePost importPost(O post) {
if (post == null) null;
GazellePost p = cast quickImport(post);
p.importedFrom = post;
ret p;
}
GazellePost replyWithTag(GazellePost post, S tag) {
ret post == null ? null : importPost(first((L) dm_call(multiBotModule, "repliesWithTag", post.importedFrom, tag)));
}
GazellePost replyWithType(GazellePost post, S type) {
if (post == null) null;
ret objectWhereIC(lmap importPost((L) dm_call(multiBotModule, "replies", post.importedFrom)), +type);
}
}