]> git.mxchange.org Git - friendica.git/commitdiff
Rename setIgnore() to ignore()
authorPhilipp <admin@philipp.info>
Tue, 19 Oct 2021 19:04:24 +0000 (21:04 +0200)
committerPhilipp <admin@philipp.info>
Thu, 21 Oct 2021 19:49:22 +0000 (21:49 +0200)
src/Contact/Introduction/Entity/Introduction.php
src/Module/Api/Mastodon/FollowRequests.php
src/Module/Notifications/Notification.php

index 59db24ffcfd96137e9e250b74134b08cdabc4ed5..44eddc2149bb1c88c72f5243178a585e8c47c59e 100644 (file)
@@ -93,7 +93,10 @@ class Introduction extends BaseEntity
                $this->id      = $id;
        }
 
-       public function setIgnore()
+       /**
+        * Ignore the current Introduction
+        */
+       public function ignore()
        {
                $this->ignore = true;
        }
index dc6f336d6db13fe13a7f03899c985a3fc957da52..bc7cc31bbe83270f6b140224c59d3e9c64e2c13b 100644 (file)
@@ -60,7 +60,7 @@ class FollowRequests extends BaseApi
                                DI::intro()->delete($introduction);
                                break;
                        case 'ignore':
-                               $introduction->setIgnore();
+                               $introduction->ignore();
                                $relationship = DI::mstdnRelationship()->createFromContactId($contactId, $uid);
 
                                DI::intro()->save($introduction);
index 403b43781c02da0e815d09b64922a554dba47780..64ab459f1232fa603dedeb5378ef6ba7a6b93eaa 100644 (file)
@@ -59,7 +59,7 @@ class Notification extends BaseModule
                                        DI::intro()->delete($intro);
                                        break;
                                case DI::l10n()->t('Ignore'):
-                                       $intro->setIgnore();
+                                       $intro->ignore();
                                        DI::intro()->save($intro);
                                        break;
                        }