Rename setIgnore() to ignore()
This commit is contained in:
parent
d2c210753a
commit
bf0782dc6b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user