/**
* @file mod/unfollow.php
*/
+
use Friendica\App;
use Friendica\Core\L10n;
use Friendica\Core\System;
+use Friendica\Database\dba;
use Friendica\Database\DBM;
use Friendica\Model\Contact;
use Friendica\Model\Profile;
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)
// 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
'$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,