X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Funfollow.php;h=6059c27ab7e2403c0a05a657dd7b480ddc48b532;hb=62a61a95d3e1357a64b157136490c82aa4495d3e;hp=8caf94245f33776f58710e46a221e7e970c0a0fc;hpb=6b44fbbda03af125035c185c964f10ce78f97610;p=friendica.git diff --git a/mod/unfollow.php b/mod/unfollow.php index 8caf94245f..6059c27ab7 100644 --- a/mod/unfollow.php +++ b/mod/unfollow.php @@ -33,7 +33,7 @@ function unfollow_post(App $a) if (!DBM::is_result($contact)) { notice(L10n::t("Contact wasn't found or can't be unfollowed.")); } else { - if (in_array($contact['network'], [NETWORK_OSTATUS, NETWORK_DIASPORA])) { + if (in_array($contact['network'], [NETWORK_OSTATUS, NETWORK_DIASPORA, NETWORK_DFRN])) { $r = q("SELECT `contact`.*, `user`.* FROM `contact` INNER JOIN `user` ON `contact`.`uid` = `user`.`uid` WHERE `user`.`uid` = %d AND `contact`.`self` LIMIT 1", intval($uid) @@ -75,7 +75,7 @@ function unfollow_content(App $a) // NOTREACHED } - if (!in_array($contact['network'], [NETWORK_DIASPORA, NETWORK_OSTATUS])) { + if (!in_array($contact['network'], [NETWORK_DIASPORA, NETWORK_OSTATUS, NETWORK_DFRN])) { notice(L10n::t("Unfollowing is currently not supported by your network.").EOL); $submit = ""; // NOTREACHED @@ -118,7 +118,7 @@ function unfollow_content(App $a) '$nickname' => "", '$name' => $contact["name"], '$url' => $contact["url"], - '$zrl' => Profile::zrl($contact["url"]), + '$zrl' => Contact::magicLink($contact["url"]), '$url_label' => L10n::t("Profile URL"), '$myaddr' => $myaddr, '$request' => $request,