mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
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:
parent
b4e4f30234
commit
bf7dc0d983
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue