]> git.mxchange.org Git - friendica.git/commitdiff
Fix class name capitalisation
authorMichael <heluecht@pirati.ca>
Wed, 20 Dec 2023 19:55:34 +0000 (19:55 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 20 Dec 2023 19:55:34 +0000 (19:55 +0000)
src/Model/Post/UserNotification.php
src/Model/Tag.php
src/Protocol/ActivityPub/Processor.php

index 41c8b503122c172fc05577bcd8326f63efbf458f..4de95b59f89eb4e7e9f612d2c5bbac6a1676811e 100644 (file)
@@ -605,7 +605,7 @@ class UserNotification
                if (empty($item['quote-uri-id']) || ($item['quote-uri-id'] == $item['uri-id'])) {
                        return false;
                }
-               $condition = ['uri-id' => $item['quote-uri-id'], 'uid' => $item['uid'], 'author-id' => $contacts, 'deleted' => false, 'gravity' => [item::GRAVITY_PARENT, Item::GRAVITY_COMMENT]];
+               $condition = ['uri-id' => $item['quote-uri-id'], 'uid' => $item['uid'], 'author-id' => $contacts, 'deleted' => false, 'gravity' => [Item::GRAVITY_PARENT, Item::GRAVITY_COMMENT]];
                return Post::exists($condition);
        }
 
index 45824bbc1a4567f10b0855cfef4e63260e0e4f25..94ced6869d70838c2d047d3b833a04222cab7687 100644 (file)
@@ -338,7 +338,7 @@ class Tag
        /**
         * Store raw tags (not encapsulated in links) from the body
         * This function is needed in the intermediate phase.
-        * Later we can call item::setHashtags in advance to have all tags converted.
+        * Later we can call Item::setHashtags in advance to have all tags converted.
         *
         * @param integer $uriId URI-Id
         * @param string  $body   Body of the post
index d2a522e81ba1f5a3b3d76a59649fb8d32e276e99..f42fa245d2f64da19c898615ef1883c74a28267f 100644 (file)
@@ -1118,7 +1118,7 @@ class Processor
                                continue;
                        }
 
-                       if (($receiver != 0) && ($item['gravity'] == Item::GRAVITY_PARENT) && !in_array($item['post-reason'], [Item::PR_FOLLOWER, Item::PR_TAG, item::PR_TO, Item::PR_CC, Item::PR_AUDIENCE])) {
+                       if (($receiver != 0) && ($item['gravity'] == Item::GRAVITY_PARENT) && !in_array($item['post-reason'], [Item::PR_FOLLOWER, Item::PR_TAG, Item::PR_TO, Item::PR_CC, Item::PR_AUDIENCE])) {
                                if (!$item['isGroup']) {
                                        if ($item['post-reason'] == Item::PR_BCC) {
                                                Logger::info('Top level post via BCC from a non sharer, ignoring', ['uid' => $receiver, 'contact' => $item['contact-id'], 'url' => $item['uri']]);