summaryrefslogtreecommitdiffstats
path: root/lib/Service/FediverseService.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Service/FediverseService.php')
-rw-r--r--lib/Service/FediverseService.php158
1 files changed, 79 insertions, 79 deletions
diff --git a/lib/Service/FediverseService.php b/lib/Service/FediverseService.php
index 6155ce3b..4b03c87f 100644
--- a/lib/Service/FediverseService.php
+++ b/lib/Service/FediverseService.php
@@ -197,83 +197,83 @@ class FediverseService {
}
-//
-// /**
-// * @param string $address
-// *
-// * @throws Exception
-// */
-// public function blockAddress(string $address) {
-// if ($this->isBlocked($address)) {
-// return;
-// }
-//
-// if ($this->isAllowed($address)) {
-// throw new Exception($address . ' is already in the whitelist');
-// }
-//
-// $blackList = $this->getBlockedAddresses();
-// array_push($blackList, $address);
-//
-// $this->configService->setAppValue(ConfigService::SOCIAL_BLACKLIST, json_encode($blackList));
-// }
-//
-// /**
-// * @return array
-// */
-// public function getBlockedAddresses(): array {
-// return json_decode($this->configService->getAppValue(ConfigService::SOCIAL_BLACKLIST));
-// }
-//
-// /**
-// * @param string $address
-// *
-// * @return bool
-// */
-// public function isBlocked(string $address): bool {
-// return (in_array('ALL', $this->getBlockedAddresses())
-// || in_array($address, $this->getBlockedAddresses()));
-// }
-//
-//
-// /**
-// * @param string $address
-// *
-// * @return void
-// * @throws Exception
-// */
-// public function allowAddress(string $address) {
-// if ($this->isAllowed($address)) {
-// return;
-// }
-//
-// if ($this->isBlocked($address)) {
-// throw new Exception($address . ' is already in the blacklist');
-// }
-//
-// $whiteList = $this->getAllowedAddresses();
-// array_push($whiteList, $address);
-//
-// $this->configService->setAppValue(ConfigService::SOCIAL_WHITELIST, json_encode($whiteList));
-// }
-//
-// /**
-// * @return array
-// */
-// public function getAllowedAddresses(): array {
-// return json_decode($this->configService->getAppValue(ConfigService::SOCIAL_WHITELIST));
-//
-// }
-//
-// /**
-// * @param string $address
-// *
-// * @return bool
-// */
-// public function isAllowed(string $address): bool {
-// return (in_array('ALL', $this->getAllowedAddresses())
-// || in_array($address, $this->getAllowedAddresses()));
-// }
-//
-//
+ //
+ // /**
+ // * @param string $address
+ // *
+ // * @throws Exception
+ // */
+ // public function blockAddress(string $address) {
+ // if ($this->isBlocked($address)) {
+ // return;
+ // }
+ //
+ // if ($this->isAllowed($address)) {
+ // throw new Exception($address . ' is already in the whitelist');
+ // }
+ //
+ // $blackList = $this->getBlockedAddresses();
+ // array_push($blackList, $address);
+ //
+ // $this->configService->setAppValue(ConfigService::SOCIAL_BLACKLIST, json_encode($blackList));
+ // }
+ //
+ // /**
+ // * @return array
+ // */
+ // public function getBlockedAddresses(): array {
+ // return json_decode($this->configService->getAppValue(ConfigService::SOCIAL_BLACKLIST));
+ // }
+ //
+ // /**
+ // * @param string $address
+ // *
+ // * @return bool
+ // */
+ // public function isBlocked(string $address): bool {
+ // return (in_array('ALL', $this->getBlockedAddresses())
+ // || in_array($address, $this->getBlockedAddresses()));
+ // }
+ //
+ //
+ // /**
+ // * @param string $address
+ // *
+ // * @return void
+ // * @throws Exception
+ // */
+ // public function allowAddress(string $address) {
+ // if ($this->isAllowed($address)) {
+ // return;
+ // }
+ //
+ // if ($this->isBlocked($address)) {
+ // throw new Exception($address . ' is already in the blacklist');
+ // }
+ //
+ // $whiteList = $this->getAllowedAddresses();
+ // array_push($whiteList, $address);
+ //
+ // $this->configService->setAppValue(ConfigService::SOCIAL_WHITELIST, json_encode($whiteList));
+ // }
+ //
+ // /**
+ // * @return array
+ // */
+ // public function getAllowedAddresses(): array {
+ // return json_decode($this->configService->getAppValue(ConfigService::SOCIAL_WHITELIST));
+ //
+ // }
+ //
+ // /**
+ // * @param string $address
+ // *
+ // * @return bool
+ // */
+ // public function isAllowed(string $address): bool {
+ // return (in_array('ALL', $this->getAllowedAddresses())
+ // || in_array($address, $this->getAllowedAddresses()));
+ // }
+ //
+ //
}