mirror of
https://github.com/friendica/friendica
synced 2025-04-26 02:30:11 +00:00
fix intro.cid and intro.suggest-id
This commit is contained in:
parent
b4572a5293
commit
44627a0b12
5 changed files with 32 additions and 24 deletions
|
@ -36,8 +36,8 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow
|
|||
{
|
||||
return new Entity\Introduction(
|
||||
$row['uid'] ?? 0,
|
||||
$row['suggest-cid'] ?? 0,
|
||||
$row['contact-id'] ?? null,
|
||||
$row['contact-id'] ?? 0,
|
||||
$row['suggest-cid'] ?? null,
|
||||
!empty($row['knowyou']),
|
||||
!empty($row['duplex']),
|
||||
$row['note'] ?? '',
|
||||
|
@ -50,9 +50,9 @@ class Introduction extends BaseFactory implements ICanCreateFromTableRow
|
|||
|
||||
public function createNew(
|
||||
int $uid,
|
||||
int $sid,
|
||||
int $cid,
|
||||
string $note,
|
||||
int $cid = null,
|
||||
int $sid = null,
|
||||
bool $knowyou = false,
|
||||
bool $duplex = false
|
||||
): Entity\Introduction {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue