]> git.mxchange.org Git - friendica.git/commitdiff
Improve class alias naming in Object\Post
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 16 Jan 2021 13:12:41 +0000 (08:12 -0500)
committerGitHub <noreply@github.com>
Sat, 16 Jan 2021 13:12:41 +0000 (08:12 -0500)
src/Object/Post.php

index 4c838f771458462498318fd26728fcfb5376820e..438d494f1de08d43220252d53eed29a5c291a5a7 100644 (file)
@@ -33,7 +33,7 @@ use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Contact;
 use Friendica\Model\Item;
-use Friendica\Model\Post as ModelPost;
+use Friendica\Model\Post as PostModel;
 use Friendica\Model\Tag;
 use Friendica\Model\User;
 use Friendica\Protocol\Activity;
@@ -213,7 +213,7 @@ class Post
                if (!$origin) {
                        /// @todo This shouldn't be done as query here, but better during the data creation.
                        // it is now done here, since during the RC phase we shouldn't make to intense changes.
-                       $parent = ModelPost::selectFirst(['origin'], ['id' => $item['parent']]);
+                       $parent = PostModel::selectFirst(['origin'], ['id' => $item['parent']]);
                        if (DBA::isResult($parent)) {
                                $origin = $parent['origin'];
                        }
@@ -876,7 +876,7 @@ class Post
                        return '';
                }
 
-               $item = ModelPost::selectFirst(['author-addr', 'uri-id'], ['id' => $this->getId()]);
+               $item = PostModel::selectFirst(['author-addr', 'uri-id'], ['id' => $this->getId()]);
                if (!DBA::isResult($item) || empty($item['author-addr'])) {
                        // Should not happen
                        return '';