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;
}
public function setIgnore()
/**
* Ignore the current Introduction
*/
public function ignore()
{
$this->ignore = true;
}

View 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);

View 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;
}