]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Fix "Undefined constant Friendica\Content\Conversation::PARCEL_DIASPORA"
[friendica.git] / update.php
index cf94b5679d318a69c0b15e979504d225e3ec72bb..85a06892f04c99a542545221ceba5bdfa4f0ad07 100644 (file)
@@ -1212,3 +1212,18 @@ function update_1509()
 
        return Update::SUCCESS;
 }
+
+function update_1510()
+{
+       $blocks = DBA::select('pconfig', ['uid', 'v'], ['cat' => 'blockem', 'k' => 'words']);
+       while ($block = DBA::fetch($blocks)) {
+               foreach (explode(',', $block['v']) as $account) {
+                       $id = Contact::getIdForURL(trim($account), 0, false);
+                       if (empty($id)) {
+                               continue;
+                       }
+                       Contact\User::setCollapsed($id, $block['uid'], true);
+               }
+       }
+       return Update::SUCCESS;
+}