]> git.mxchange.org Git - friendica.git/commitdiff
Fix: The "extid" field wasn't updated
authorMichael <heluecht@pirati.ca>
Sun, 18 Apr 2021 07:08:16 +0000 (07:08 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 18 Apr 2021 07:08:16 +0000 (07:08 +0000)
src/Model/Item.php

index 4025ec4ffe189cd9c648b9ecf64b2adeb181b2b7..8867a2caa125b5e6e8564acccea0ad491df97373 100644 (file)
@@ -150,6 +150,10 @@ class Item
                        return false;
                }
 
+               if (!empty($fields['extid']) && empty($fields['external-id'])) {
+                       $fields['external-id'] = ItemURI::getIdByURI($fields['extid']);
+               }
+
                if (!empty($fields['verb'])) {
                        $fields['vid'] = Verb::getID($fields['verb']);
                }