allow the profile recrods to be cloned separately

This commit is contained in:
zotlabs 2018-04-04 17:54:43 -07:00
parent f748139606
commit 1a25b0bda7
2 changed files with 3 additions and 2 deletions

View File

@ -296,10 +296,11 @@ class Like extends \Zotlabs\Web\Controller {
notice( t('Permission denied') . EOL);
killme();
}
$r = q("select * from xchan where xchan_hash = '%s' limit 1",
dbesc($item['owner_xchan'])
);
if($r)
$thread_owner = $r[0];
else

View File

@ -780,7 +780,7 @@ function identity_basic_export($channel_id, $sections = null) {
}
}
if(in_array('channel',$sections)) {
if(in_array('channel',$sections) || in_array('profile',$sections)) {
$r = q("select * from profile where uid = %d",
intval($channel_id)
);