]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Post/DeliveryData.php
Merge pull request #12674 from nupplaphil/bug/config_typesafe
[friendica.git] / src / Model / Post / DeliveryData.php
index 0feb38281bf1512ce3589d8298c217a0a9178b5b..e87bb0e0157febce69dfdc5a5dbc7dd8205b03f6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -41,7 +41,7 @@ class DeliveryData
 
        const ACTIVITYPUB = 1;
        const DFRN = 2;
-       const LEGACY_DFRN = 3;
+       const LEGACY_DFRN = 3; // @deprecated since version 2021.09
        const DIASPORA = 4;
        const OSTATUS = 5;
        const MAIL = 6;
@@ -148,7 +148,7 @@ class DeliveryData
 
                $fields['uri-id'] = $uri_id;
 
-               return DBA::insert('post-delivery-data', $fields);
+               return DBA::replace('post-delivery-data', $fields);
        }
 
        /**