]> git.mxchange.org Git - friendica.git/commitdiff
[dbstructure 1373] Replace contact.blocked with user.blocked in owner-view
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 8 Nov 2020 07:23:28 +0000 (02:23 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 8 Nov 2020 07:35:55 +0000 (02:35 -0500)
- It was falsely reporting blocked users as unblocked since we don't block the public self contact

database.sql
static/dbstructure.config.php
static/dbview.config.php

index d3e75e753e03d619db62898de691c49cdf7b84cf..250615b4028408c4adbdc1f0d4523b38e89530cd 100644 (file)
@@ -1574,7 +1574,7 @@ CREATE VIEW `owner-view` AS SELECT
        `contact`.`term-date` AS `term-date`,
        `contact`.`last-item` AS `last-item`,
        `contact`.`priority` AS `priority`,
-       `contact`.`blocked` AS `blocked`,
+       `user`.`blocked` AS `blocked`,
        `contact`.`block_reason` AS `block_reason`,
        `contact`.`readonly` AS `readonly`,
        `contact`.`writable` AS `writable`,
index a3b94e0b27f69325398fc3007fe5e84527d4e98e..8d2708305859c049eafda17c24cbfb0547b9c4fc 100755 (executable)
@@ -54,7 +54,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1372);
+       define('DB_UPDATE_VERSION', 1373);
 }
 
 return [
index ff8600b3da32ac61da6461cf3df4ca77c95398f3..5c183642623faf7ab6a206c24c16179ca7d0deb3 100755 (executable)
@@ -181,7 +181,7 @@ return [
                        "term-date" => ["contact", "term-date"],
                        "last-item" => ["contact", "last-item"],
                        "priority" => ["contact", "priority"],
-                       "blocked" => ["contact", "blocked"], /// @todo Check if "blocked" from contact or from the users table
+                       "blocked" => ["user", "blocked"],
                        "block_reason" => ["contact", "block_reason"],
                        "readonly" => ["contact", "readonly"],
                        "writable" => ["contact", "writable"],