item wall flag => photos
This commit is contained in:
parent
ca8566008d
commit
7d5ace644e
|
@ -208,12 +208,13 @@ function photos_post(&$a) {
|
||||||
|
|
||||||
$uri = item_new_uri($a->get_hostname(),get_uid());
|
$uri = item_new_uri($a->get_hostname(),get_uid());
|
||||||
|
|
||||||
$r = q("INSERT INTO `item` (`uid`, `type`, `resource-id`, `contact-id`,
|
$r = q("INSERT INTO `item` (`uid`, `type`, `wall`, `resource-id`, `contact-id`,
|
||||||
`owner-name`,`owner-link`,`owner-avatar`, `created`,
|
`owner-name`,`owner-link`,`owner-avatar`, `created`,
|
||||||
`edited`, `changed`, `uri`, `parent-uri`, `title`, `body`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
|
`edited`, `changed`, `uri`, `parent-uri`, `title`, `body`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
|
||||||
VALUES( %d, '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
|
VALUES( %d, '%s', %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
|
||||||
intval(get_uid()),
|
intval(get_uid()),
|
||||||
dbesc('photo'),
|
dbesc('photo'),
|
||||||
|
intval(1),
|
||||||
dbesc($p[0]['resource-id']),
|
dbesc($p[0]['resource-id']),
|
||||||
intval($contact_record['id']),
|
intval($contact_record['id']),
|
||||||
dbesc($contact_record['name']),
|
dbesc($contact_record['name']),
|
||||||
|
@ -345,11 +346,12 @@ function photos_post(&$a) {
|
||||||
|
|
||||||
$uri = item_new_uri($a->get_hostname(), get_uid());
|
$uri = item_new_uri($a->get_hostname(), get_uid());
|
||||||
|
|
||||||
$r = q("INSERT INTO `item` (`uid`, `type`, `resource-id`, `contact-id`,`owner-name`,`owner-link`,`owner-avatar`, `created`,
|
$r = q("INSERT INTO `item` (`uid`, `type`, `wall`, `resource-id`, `contact-id`,`owner-name`,`owner-link`,`owner-avatar`, `created`,
|
||||||
`edited`, `changed`, `uri`, `parent-uri`, `title`, `body`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`, `visible`)
|
`edited`, `changed`, `uri`, `parent-uri`, `title`, `body`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`, `visible`)
|
||||||
VALUES( %d, '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d )",
|
VALUES( %d, '%s', %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d )",
|
||||||
intval(get_uid()),
|
intval(get_uid()),
|
||||||
dbesc('photo'),
|
dbesc('photo'),
|
||||||
|
intval(1),
|
||||||
dbesc($photo_hash),
|
dbesc($photo_hash),
|
||||||
intval($contact_record['id']),
|
intval($contact_record['id']),
|
||||||
dbesc($contact_record['name']),
|
dbesc($contact_record['name']),
|
||||||
|
|
Loading…
Reference in a new issue