@curiousdannii There's a good possibility that Joseph Smith had access to Swedenborg's writings and derived some of his "distinctive" teachings from Swedenborg--though he also diverged heavily from Swedenborg in many ways. See:
Did Emanuel Swedenborg Influence LDS Doctrine? by Craig Miller