$avatarurl = fetch_avatar_url($thread['postuserid'], true);
$avatarurl = fetch_avatar_url($thread['lastposterid'], true);