mirror of
https://github.com/friendica/friendica
synced 2025-04-26 02:30:11 +00:00
set intro::duplex deprecated because of no usage
This commit is contained in:
parent
d67b676ce5
commit
f5786a8f4f
7 changed files with 5 additions and 18 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue