Add topic_id to Post::
Make libraries/users.php unused and delete it
Orfanating Libraries\Forum::getPosts() and delete it
Superseed libraries/forums.php and remove it