Rename setIgnore() to ignore()

2022.09-rc
Philipp 2021-10-19 21:04:24 +02:00
rodzic d2c210753a
commit bf0782dc6b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 24A7501396EB5432
3 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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