ThreadItemStore: Only pass *Content*ThreadItemSet to insertThreadItems

We never a DatabaseThreadItem back into the database. If someone
wants to do this in the future they should be thinking very
hard about it first.

Change-Id: Ie073c030905e31d81cb75bc9c46d5bb7c5d85b04
This commit is contained in:
Ed Sanders 2024-02-21 16:08:20 +00:00
parent b4e4f30234
commit bf7dc0d983

View file

@ -516,13 +516,13 @@ class ThreadItemStore {
* Store the thread item set.
*
* @param RevisionRecord $rev
* @param ThreadItemSet $threadItemSet
* @param ContentThreadItemSet $threadItemSet
* @throws TimestampException
* @throws DBError
* @throws Exception
* @return bool
*/
public function insertThreadItems( RevisionRecord $rev, ThreadItemSet $threadItemSet ): bool {
public function insertThreadItems( RevisionRecord $rev, ContentThreadItemSet $threadItemSet ): bool {
if ( $this->readOnlyMode->isReadOnly() ) {
return false;
}