Improvements for following/unfollowing of Diaspora and OStatus

This commit is contained in:
Michael 2017-09-23 14:48:27 +00:00
parent dd45dcbef3
commit 8983dcaa77
4 changed files with 24 additions and 18 deletions

View 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)