add poco and follow to default xchan creation
This commit is contained in:
parent
307fcac86d
commit
13feafce17
@ -243,7 +243,7 @@ function create_identity($arr) {
|
|||||||
|
|
||||||
$newuid = $ret['channel']['channel_id'];
|
$newuid = $ret['channel']['channel_id'];
|
||||||
|
|
||||||
$r = q("insert into xchan ( xchan_hash, xchan_guid, xchan_guid_sig, xchan_pubkey, xchan_photo_l, xchan_photo_m, xchan_photo_s, xchan_addr, xchan_url, xchan_follow, xchan_name, xchan_network, xchan_photo_date, xchan_name_date ) values ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
|
$r = q("insert into xchan ( xchan_hash, xchan_guid, xchan_guid_sig, xchan_pubkey, xchan_photo_l, xchan_photo_m, xchan_photo_s, xchan_addr, xchan_url, xchan_follow, xchan_connurl, xchan_name, xchan_network, xchan_photo_date, xchan_name_date ) values ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
|
||||||
dbesc($hash),
|
dbesc($hash),
|
||||||
dbesc($guid),
|
dbesc($guid),
|
||||||
dbesc($sig),
|
dbesc($sig),
|
||||||
@ -254,6 +254,7 @@ function create_identity($arr) {
|
|||||||
dbesc($ret['channel']['channel_address'] . '@' . get_app()->get_hostname()),
|
dbesc($ret['channel']['channel_address'] . '@' . get_app()->get_hostname()),
|
||||||
dbesc(z_root() . '/channel/' . $ret['channel']['channel_address']),
|
dbesc(z_root() . '/channel/' . $ret['channel']['channel_address']),
|
||||||
dbesc(z_root() . '/follow?f=&url=%s'),
|
dbesc(z_root() . '/follow?f=&url=%s'),
|
||||||
|
dbesc(z_root() . '/poco/' . $ret['channel']['channel_address']),
|
||||||
dbesc($ret['channel']['channel_name']),
|
dbesc($ret['channel']['channel_name']),
|
||||||
dbesc('zot'),
|
dbesc('zot'),
|
||||||
dbesc(datetime_convert()),
|
dbesc(datetime_convert()),
|
||||||
|
@ -214,7 +214,7 @@ function import_post(&$a) {
|
|||||||
dbesc($channel['channel_hash'])
|
dbesc($channel['channel_hash'])
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = q("insert into xchan ( xchan_hash, xchan_guid, xchan_guid_sig, xchan_pubkey, xchan_photo_l, xchan_photo_m, xchan_photo_s, xchan_addr, xchan_url, xchan_name, xchan_network, xchan_photo_date, xchan_name_date ) values ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
|
$r = q("insert into xchan ( xchan_hash, xchan_guid, xchan_guid_sig, xchan_pubkey, xchan_photo_l, xchan_photo_m, xchan_photo_s, xchan_addr, xchan_url, xchan_follow, xchan_connurl, xchan_name, xchan_network, xchan_photo_date, xchan_name_date ) values ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
|
||||||
dbesc($channel['channel_hash']),
|
dbesc($channel['channel_hash']),
|
||||||
dbesc($channel['channel_guid']),
|
dbesc($channel['channel_guid']),
|
||||||
dbesc($channel['channel_guid_sig']),
|
dbesc($channel['channel_guid_sig']),
|
||||||
@ -224,6 +224,8 @@ function import_post(&$a) {
|
|||||||
dbesc($a->get_baseurl() . "/photo/profile/s/" . $channel['channel_id']),
|
dbesc($a->get_baseurl() . "/photo/profile/s/" . $channel['channel_id']),
|
||||||
dbesc($channel['channel_address'] . '@' . get_app()->get_hostname()),
|
dbesc($channel['channel_address'] . '@' . get_app()->get_hostname()),
|
||||||
dbesc(z_root() . '/channel/' . $channel['channel_address']),
|
dbesc(z_root() . '/channel/' . $channel['channel_address']),
|
||||||
|
dbesc(z_root() . '/follow?f=&url=%s'),
|
||||||
|
dbesc(z_root() . '/poco/' . $channel['channel_address']),
|
||||||
dbesc($channel['channel_name']),
|
dbesc($channel['channel_name']),
|
||||||
dbesc('zot'),
|
dbesc('zot'),
|
||||||
dbesc(datetime_convert()),
|
dbesc(datetime_convert()),
|
||||||
|
Reference in New Issue
Block a user