Rename setIgnore() to ignore()

This commit is contained in:
Philipp 2021-10-19 21:04:24 +02:00
parent d2c210753a
commit bf0782dc6b
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432
3 changed files with 6 additions and 3 deletions

View File

@ -93,7 +93,10 @@ class Introduction extends BaseEntity
$this->id = $id; $this->id = $id;
} }
public function setIgnore() /**
* Ignore the current Introduction
*/
public function ignore()
{ {
$this->ignore = true; $this->ignore = true;
} }

View File

@ -60,7 +60,7 @@ class FollowRequests extends BaseApi
DI::intro()->delete($introduction); DI::intro()->delete($introduction);
break; break;
case 'ignore': case 'ignore':
$introduction->setIgnore(); $introduction->ignore();
$relationship = DI::mstdnRelationship()->createFromContactId($contactId, $uid); $relationship = DI::mstdnRelationship()->createFromContactId($contactId, $uid);
DI::intro()->save($introduction); DI::intro()->save($introduction);

View File

@ -59,7 +59,7 @@ class Notification extends BaseModule
DI::intro()->delete($intro); DI::intro()->delete($intro);
break; break;
case DI::l10n()->t('Ignore'): case DI::l10n()->t('Ignore'):
$intro->setIgnore(); $intro->ignore();
DI::intro()->save($intro); DI::intro()->save($intro);
break; break;
} }