]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Group membership URI needs dataobjects not IDs
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 27 Dec 2015 12:01:24 +0000 (13:01 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 27 Dec 2015 12:01:24 +0000 (13:01 +0100)
scripts/upgrade.php

index cfdd260591a6198ea9068ad0bfdc215949ca5b12..d2bc403b5ee2b80dc1af1193d5cbd414190cf6fa 100755 (executable)
@@ -359,7 +359,7 @@ function initGroupMemberURI()
                 $mem->query(sprintf('update group_member set uri = "%s" '.
                                     'where profile_id = %d ' . 
                                     'and group_id = %d ',
-                                    Group_member::newURI($mem->profile_id, $mem->group_id, $mem->created),
+                                    Group_member::newUri(Profile::getByID($mem->profile_id), User_group::getByID($mem->group_id), $mem->created),
                                     $mem->profile_id,
                                     $mem->group_id));
             } catch (Exception $e) {