]> git.mxchange.org Git - friendica.git/commitdiff
Fix "Undefined constant Friendica\Content\Conversation::PARCEL_DIASPORA"
authorMichael <heluecht@pirati.ca>
Thu, 12 Jan 2023 06:57:31 +0000 (06:57 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 12 Jan 2023 06:57:31 +0000 (06:57 +0000)
src/Model/Contact.php

index a16d55976c6d6786a111f588e18a95c290320bda..931ae3e4dcffb518439519e13e31919da06334ef 100644 (file)
@@ -23,7 +23,7 @@ namespace Friendica\Model;
 
 use Friendica\Contact\Avatar;
 use Friendica\Contact\Introduction\Exception\IntroductionNotFoundException;
-use Friendica\Content\Conversation;
+use Friendica\Content\Conversation As ConversationContent;
 use Friendica\Content\Pager;
 use Friendica\Content\Text\HTML;
 use Friendica\Core\Hook;
@@ -1610,7 +1610,7 @@ class Contact
                                }
                        }
 
-                       $o .= DI::conversation()->create($items, Conversation::MODE_CONTACTS, $update, false, 'pinned_commented', DI::userSession()->getLocalUserId());
+                       $o .= DI::conversation()->create($items, ConversationContent::MODE_CONTACTS, $update, false, 'pinned_commented', DI::userSession()->getLocalUserId());
                } else {
                        $fields = array_merge(Item::DISPLAY_FIELDLIST, ['featured']);
                        $items = Post::toArray(Post::selectForUser(DI::userSession()->getLocalUserId(), $fields, $condition, $params));
@@ -1625,7 +1625,7 @@ class Contact
                                }
                        }
 
-                       $o .= DI::conversation()->create($items, Conversation::MODE_CONTACT_POSTS, $update);
+                       $o .= DI::conversation()->create($items, ConversationContent::MODE_CONTACT_POSTS, $update);
                }
 
                if (!$update) {