added models Thread and ThreadFiles in thread plugin
This commit is contained in:
@@ -105,13 +105,19 @@ void CreateThread::MakePost()
|
||||
if( functions->CheckAbuse() )
|
||||
return;
|
||||
|
||||
thread.set_connector(model_connector);
|
||||
thread.clear();
|
||||
|
||||
cur->request->status = system->AddFile(cur->request->item) ? WINIX_ERR_OK : WINIX_ERR_PERMISSION_DENIED;
|
||||
|
||||
if( cur->request->status == WINIX_ERR_OK )
|
||||
{
|
||||
thread.Clear();
|
||||
thread.file_id = cur->request->item.id;
|
||||
cur->request->status = tdb->AddThread(thread);
|
||||
thread.last_item.id = cur->request->item.id;
|
||||
thread.set_has_primary_key_set(true);
|
||||
|
||||
if( !thread.insert() )
|
||||
cur->request->status = WINIX_ERR_PERMISSION_DENIED;
|
||||
}
|
||||
|
||||
if( cur->request->status == WINIX_ERR_OK )
|
||||
|
Reference in New Issue
Block a user