]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Group.php
Merge pull request #8147 from annando/fetch-post
[friendica.git] / src / Model / Group.php
index c38e78000b6a25247625d5afacee96ca3aee87ab..199ff1ebd7e112950286b5889cac3b56e18e61d3 100644 (file)
@@ -117,6 +117,16 @@ class Group
                }
                DBA::close($stmt);
 
+               // Meta-groups
+               $contact = Contact::getById($cid, ['rel']);
+               if ($contact['rel'] == Contact::FOLLOWER || $contact['rel'] == Contact::FRIEND) {
+                       $return[] = self::FOLLOWERS;
+               }
+
+               if ($contact['rel'] == Contact::FRIEND) {
+                       $return[] = self::MUTUALS;
+               }
+
                return $return;
        }