| @@ -480,9 +480,9 @@ | ||
| 480 | 480 | $item['status'] = 1; |
| 481 | 481 | |
| 482 | 482 | // Log to AI moderation table for visibility in admin moderation page |
| 483 | 483 | $this->save_builtin_moderation_log( [ |
| 484 | - 'content_type' => isset( $item['title'] ) ? 'topic' : 'post', | |
| 484 | + 'content_type' => isset( $item['parentid'] ) ? 'post' : 'topic', | |
| 485 | 485 | 'topicid' => $item['topicid'] ?? 0, |
| 486 | 486 | 'forumid' => $item['forumid'] ?? 0, |
| 487 | 487 | 'userid' => $item['userid'] ?? WPF()->current_userid, |
| 488 | 488 | 'moderation_type' => 'spam', |
| @@ -500,9 +500,9 @@ | ||
| 500 | 500 | $item['status'] = 1; |
| 501 | 501 | |
| 502 | 502 | // Log to AI moderation table for visibility in admin moderation page |
| 503 | 503 | $this->save_builtin_moderation_log( [ |
| 504 | - 'content_type' => isset( $item['title'] ) ? 'topic' : 'post', | |
| 504 | + 'content_type' => isset( $item['parentid'] ) ? 'post' : 'topic', | |
| 505 | 505 | 'topicid' => $item['topicid'] ?? 0, |
| 506 | 506 | 'forumid' => $item['forumid'] ?? 0, |
| 507 | 507 | 'userid' => WPF()->current_userid, |
| 508 | 508 | 'moderation_type' => 'spam', |
| @@ -517,9 +517,9 @@ | ||
| 517 | 517 | $item['status'] = 1; |
| 518 | 518 | |
| 519 | 519 | // Log to AI moderation table for visibility in admin moderation page |
| 520 | 520 | $this->save_builtin_moderation_log( [ |
| 521 | - 'content_type' => isset( $item['title'] ) ? 'topic' : 'post', | |
| 521 | + 'content_type' => isset( $item['parentid'] ) ? 'post' : 'topic', | |
| 522 | 522 | 'topicid' => $item['topicid'] ?? 0, |
| 523 | 523 | 'forumid' => $item['forumid'] ?? 0, |
| 524 | 524 | 'userid' => WPF()->current_userid, |
| 525 | 525 | 'moderation_type' => 'spam', |