'default' => array(
'Activity' => array(),
'AntiBrute' => array(),
+ 'Blacklist' => array(),
'Bookmark' => array(),
'ClientSideShorten' => array(),
'DefaultLayout' => array(),
* @link http://status.net/
*/
-if (!defined('STATUSNET')) {
- exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
/**
* Plugin to prevent use of nicknames or URLs on a blacklist
*/
function onStartSubscribe(Profile $subscriber, Profile $other)
{
- foreach (array($other->profileurl, $other->homepage) as $url) {
+ foreach ([$other->getUrl(), $other->getHomepage()] as $url) {
if (empty($url)) {
continue;
}
}
- $nickname = $other->nickname;
+ $nickname = $other->getNickname();
if (!empty($nickname)) {
if (!$this->_checkNickname($nickname)) {