]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
spelling: entry
[friendica.git] / src / Model / Item.php
index 809a70254bf255dc29e28ac9ac490a376893c679..af47b643cf4251955ae4519c1cbb39fe78d8f115 100644 (file)
@@ -233,7 +233,7 @@ class Item
                                Post\Media::insertFromAttachment($item['uri-id'], $fields['attach']);
                        }
 
-                       // We only need to notfiy others when it is an original entry from us.
+                       // We only need to notify others when it is an original entry from us.
                        // Only call the notifier when the item had been edited and records had been changed.
                        if ($item['origin'] && !empty($fields['edited']) && ($previous['edited'] != $fields['edited'])) {
                                $notify_items[] = $item['id'];
@@ -875,7 +875,7 @@ class Item
                /*
                 * Do we already have this item?
                 * We have to check several networks since Friendica posts could be repeated
-                * via OStatus (maybe Diasporsa as well)
+                * via OStatus (maybe Diaspora as well)
                 */
                $duplicate = self::getDuplicateID($item);
                if ($duplicate) {
@@ -933,7 +933,7 @@ class Item
                $item['inform']        = trim($item['inform'] ?? '');
                $item['file']          = trim($item['file'] ?? '');
 
-               // Communities aren't working with the Diaspora protoccol
+               // Communities aren't working with the Diaspora protocol
                if (($uid != 0) && ($item['network'] == Protocol::DIASPORA)) {
                        $user = User::getById($uid, ['account-type']);
                        if ($user['account-type'] == Contact::TYPE_COMMUNITY) {
@@ -1499,7 +1499,7 @@ class Item
 
                $users = [];
 
-               /// @todo add a field "pcid" in the contact table that referrs to the public contact id.
+               /// @todo add a field "pcid" in the contact table that refers to the public contact id.
                $owner = DBA::selectFirst('contact', ['url', 'nurl', 'alias'], ['id' => $parent['owner-id']]);
                if (!DBA::isResult($owner)) {
                        return;
@@ -2501,12 +2501,12 @@ class Item
         */
        public static function enumeratePermissions(array $obj, bool $check_dead = false): array
        {
-               $aclFormater = DI::aclFormatter();
+               $aclFormatter = DI::aclFormatter();
 
-               $allow_people = $aclFormater->expand($obj['allow_cid']);
-               $allow_groups = Group::expand($obj['uid'], $aclFormater->expand($obj['allow_gid']), $check_dead);
-               $deny_people  = $aclFormater->expand($obj['deny_cid']);
-               $deny_groups  = Group::expand($obj['uid'], $aclFormater->expand($obj['deny_gid']), $check_dead);
+               $allow_people = $aclFormatter->expand($obj['allow_cid']);
+               $allow_groups = Group::expand($obj['uid'], $aclFormatter->expand($obj['allow_gid']), $check_dead);
+               $deny_people  = $aclFormatter->expand($obj['deny_cid']);
+               $deny_groups  = Group::expand($obj['uid'], $aclFormatter->expand($obj['deny_gid']), $check_dead);
                $recipients   = array_unique(array_merge($allow_people, $allow_groups));
                $deny         = array_unique(array_merge($deny_people, $deny_groups));
                $recipients   = array_diff($recipients, $deny);
@@ -2615,7 +2615,7 @@ class Item
         *            Activity verb. One of
         *            like, unlike, dislike, undislike, attendyes, unattendyes,
         *            attendno, unattendno, attendmaybe, unattendmaybe,
-        *            announce, unannouce
+        *            announce, unannounce
         * @param int    $uid
         * @param string $allow_cid
         * @param string $allow_gid