set intro::duplex deprecated because of no usage

This commit is contained in:
Philipp 2021-10-21 21:48:23 +02:00
parent d67b676ce5
commit f5786a8f4f
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
7 changed files with 5 additions and 18 deletions

View file

@ -39,7 +39,6 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow
$row['contact-id'] ?? 0,
$row['suggest-cid'] ?? null,
!empty($row['knowyou']),
!empty($row['duplex']),
$row['note'] ?? '',
$row['hash'] ?? '',
new \DateTime($row['datetime'] ?? 'now', new \DateTimeZone('UTC')),
@ -53,15 +52,13 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow
int $cid,
string $note,
int $sid = null,
bool $knowyou = false,
bool $duplex = false
bool $knowyou = false
): Entity\Introduction {
return $this->createFromTableRow([
'uid' => $uid,
'suggest-cid' => $sid,
'contact-id' => $cid,
'knowyou' => $knowyou,
'duplex' => $duplex,
'note' => $note,
'hash' => Strings::getRandomHex(),
'datetime' => DateTimeFormat::utcNow(),