diff --git a/lib/Exceptions/FollowSameAccountException.php b/lib/Exceptions/FollowSameAccountException.php new file mode 100644 index 00000000..cdf5140a --- /dev/null +++ b/lib/Exceptions/FollowSameAccountException.php @@ -0,0 +1,8 @@ +personService->getFromAccount($account); + if ($remoteActor->getId() === $actor->getId()) { + throw new FollowSameAccountException("Don't follow yourself, be your own lead"); + } + $follow = new Follow(); $follow->setUrlCloud($this->configService->getCloudAddress()); $follow->generateUniqueId(); diff --git a/src/components/ProfileInfo.vue b/src/components/ProfileInfo.vue index 983a7fe1..9a4ba0f1 100644 --- a/src/components/ProfileInfo.vue +++ b/src/components/ProfileInfo.vue @@ -27,7 +27,7 @@

{{ displayName }}

{{ accountInfo.account }}

Website: {{ accountInfo.website.value }}

-