Skip to content

Commit

Permalink
Merge 75b4b39 into d48eb74
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtificialOwl authored Apr 13, 2022
2 parents d48eb74 + 75b4b39 commit 8f88cf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Model/FederatedUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@ public function import(array $data): IDeserializable {
* @throws OwnerNotFoundException
*/
public function importFromCircle(Circle $circle): self {
if (!$circle->hasOwner()) {
throw new OwnerNotFoundException();
}

$this->setSingleId($circle->getSingleId());

if ($circle->isConfig(Circle::CFG_SINGLE)) {
Expand Down

0 comments on commit 8f88cf1

Please sign in to comment.