]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Fix: Newer Friendica servers had been detected as ActivityPub
[friendica.git] / update.php
index 18442f79588ecea0d6cd154f74c1f161ac4d8c4b..40f39ebebad0783a07648d97f52abc4d870a63d6 100644 (file)
@@ -384,3 +384,27 @@ function update_1318()
        Worker::add(PRIORITY_LOW, 'ProfileUpdate');
        return Update::SUCCESS;
 }
+
+function update_1323()
+{
+       $users = DBA::select('user', ['uid']);
+       while ($user = DBA::fetch($users)) {
+               Contact::updateSelfFromUserID($user['uid']);
+       }
+       DBA::close($users);
+
+       return Update::SUCCESS;
+}
+
+function update_1327()
+{
+       $contacts = DBA::select('contact', ['uid', 'id', 'blocked', 'readonly'], ["`uid` != ? AND (`blocked` OR `readonly`) AND NOT `pending`", 0]);
+       while ($contact = DBA::fetch($contacts)) {
+               Contact::setBlockedForUser($contact['id'], $contact['uid'], $contact['blocked']);
+               Contact::setIgnoredForUser($contact['id'], $contact['uid'], $contact['readonly']);
+       }
+       DBA::close($contacts);
+
+       return Update::SUCCESS;
+}
+