]> git.mxchange.org Git - friendica.git/blobdiff - mod/unfollow.php
Merge pull request #3743 from MrPetovan/task/update-languagedetect
[friendica.git] / mod / unfollow.php
index d0baf87c441da88f338edb8531a63b66f5a07c63..8ee96a14c829e1b5e47e6baf1e98736f0d400464 100644 (file)
@@ -32,7 +32,7 @@ function unfollow_post(App $a) {
        if (!dbm::is_result($contact)) {
                notice(t("Contact wasn't found or can't be unfollowed."));
        } else {
-               if (in_array($contact['network'], array(NETWORK_OSTATUS))) {
+               if (in_array($contact['network'], array(NETWORK_OSTATUS, NETWORK_DIASPORA))) {
                        $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)