I'd like to suggest changing XenForo_Model_Tag::adjustContentTags() to not insert into the database directly and instead use the data writer for the tag_content table. Alternatively, just calling $this->_insertTagContentRecord() or something would work as well. Basically I want to do some stuff...