X-Git-Url: https://git.p6c8.net/selfforum.git/blobdiff_plain/2427a7a4ff1fe48d61d649a0c1618f3528a95231..4b55d37edde15226caac8bc1876d8d9e798587db:/selfforum-cgi/shared/Posting/Write.pm diff --git a/selfforum-cgi/shared/Posting/Write.pm b/selfforum-cgi/shared/Posting/Write.pm index b7d7893..98f71fe 100644 --- a/selfforum-cgi/shared/Posting/Write.pm +++ b/selfforum-cgi/shared/Posting/Write.pm @@ -78,7 +78,8 @@ sub write_new_thread ($) { body => encoded_body( \($param -> {body}), { quoteChars => $param -> {quoteChars}, - messages => $param -> {messages} + messages => $param -> {messages}, + base_uri => $param -> {base_uri} } ), time => $param -> {time}, @@ -116,7 +117,7 @@ sub write_new_thread ($) { save_file ($param -> {forumFile}, $forum) or return $error{forumWrite}; release_file ($param -> {messagePath}.$tid.'.xml'); - return (0, $thread, $mid); + return (0, $thread, $mid, $tid); } ### sub write_reply_posting ($) ################################################ @@ -179,7 +180,8 @@ sub write_reply_posting ($) { ${encoded_body( \($param -> {body}), { quoteChars => $param -> {quoteChars}, - messages => $param -> {messages} + messages => $param -> {messages}, + base_uri => $param -> {base_uri} } )} ) @@ -226,17 +228,17 @@ sub write_reply_posting ($) { $param -> {parsedThreads}, { dtd => $param -> {dtd}, lastMessage => $mid, - lastThread => $tid + lastThread => 't'.$param -> {lastThread} } ); save_file ($param -> {forumFile}, $forum) or return $error{forumWrite}; } - return (0, $thread, $mid); + return (0, $thread, $mid, $tid); } -# keeping 'require' happy +# keep 'require' happy # 1;