]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/FContact.php
Issue 11853/11867: Fix reshare of public posts
[friendica.git] / src / Model / FContact.php
index 62e609fbee600bba8df99117910eda1e498ade00..8bc696a4668d2493c1d386ec3af68f037d8d051f 100644 (file)
@@ -24,6 +24,7 @@ namespace Friendica\Model;
 use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
 use Friendica\Database\DBA;
+use Friendica\DI;
 use Friendica\Network\Probe;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Strings;
@@ -125,6 +126,7 @@ class FContact
 
                $condition = ['url' => $arr['url'], 'network' => $arr['network']];
 
+               $fields = DI::dbaDefinition()->truncateFieldsForTable('fcontact', $fields);
                DBA::update('fcontact', $fields, $condition, true);
        }