Set intro.blocked to deprecated

This commit is contained in:
Philipp 2021-10-19 21:30:09 +02:00
parent bf0782dc6b
commit ed184bd592
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
7 changed files with 14 additions and 14 deletions

View file

@ -75,7 +75,6 @@ class Introduction extends BaseDepository
'duplex' => $introduction->duplex ? 1 : 0,
'note' => $introduction->note,
'hash' => $introduction->hash,
'blocked' => $introduction->blocked ? 1 : 0,
'ignore' => $introduction->ignore ? 1 : 0,
'datetime' => $introduction->datetime->format(DateTimeFormat::MYSQL),
];
@ -143,7 +142,7 @@ class Introduction extends BaseDepository
public function countActiveForUser($uid, array $params = []): int
{
try {
return $this->count(['blocked' => false, 'ignore' => false, 'uid' => $uid], $params);
return $this->count(['ignore' => false, 'uid' => $uid], $params);
} catch (\Exception $e) {
throw new IntroductionPersistenceException(sprintf('Cannot count Introductions for used %d', $uid), $e);
}