]> git.mxchange.org Git - friendica.git/commitdiff
Fix notice for missing "uri-id"
authorMichael <heluecht@pirati.ca>
Fri, 1 May 2020 12:42:22 +0000 (12:42 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 1 May 2020 12:42:22 +0000 (12:42 +0000)
src/Protocol/ActivityPub/Transmitter.php

index 82bda11698e56901beb953fb3d527455975f5c1d..04c7531db2ee15a850141275275c89deee037a88 100644 (file)
@@ -34,6 +34,7 @@ use Friendica\Model\APContact;
 use Friendica\Model\Contact;
 use Friendica\Model\Conversation;
 use Friendica\Model\Item;
+use Friendica\Model\ItemURI;
 use Friendica\Model\Profile;
 use Friendica\Model\Photo;
 use Friendica\Model\Tag;
@@ -701,6 +702,8 @@ class Transmitter
                        return [];
                }
 
+               $mail['uri-id'] = ItemURI::insert(['uri' => $mail['uri'], 'guid' => $mail['guid']]);
+
                $reply = DBA::selectFirst('mail', ['uri'], ['parent-uri' => $mail['parent-uri'], 'reply' => false]);
 
                // Making the post more compatible for Mastodon by: