fixed: thread plugin didn't correctly set the last item and replies (in 'thread' table)
when deleting an answer added: ThreadInfo::Repair() method will be used by 'fsck' winix function added: plugins/groupitem directory for a new plugin: 'groupitem' git-svn-id: svn://ttmath.org/publicrep/winix/trunk@725 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -75,7 +75,7 @@ void Reply::MakePost()
|
||||
// !! jak bedzie dostepne assert
|
||||
// ASSERT(files_dir)
|
||||
|
||||
if( tdb->GetThreadByFileId(cur->request->item.id, thread) != WINIX_ERR_OK )
|
||||
if( tdb->GetThread(cur->request->item.id, thread) != WINIX_ERR_OK )
|
||||
{
|
||||
thread.Clear();
|
||||
thread.file_id = cur->request->item.id;
|
||||
@@ -99,7 +99,7 @@ void Reply::MakePost()
|
||||
cur->request->status = system->AddFile(answer);
|
||||
|
||||
if( cur->request->status == WINIX_ERR_OK )
|
||||
cur->request->status = tdb->EditThreadAddItem(cur->request->item.id, answer.id);
|
||||
cur->request->status = tdb->AddAnswer(cur->request->item.id, answer.id);
|
||||
|
||||
|
||||
if( cur->request->status == WINIX_ERR_OK )
|
||||
|
Reference in New Issue
Block a user