public function getFollowedThreads($session_user) { $this->threads_followed = array(); $followed_ids = Follow::getFollowedThreadIds($this->id); foreach ($followed_ids as $thread) { $this->threads_followed[] = Thread::getById($thread['thread_id']); } Thread::getAttributes($this->threads_followed, $session_user); }