fixes to thing profile assignments

This commit is contained in:
friendica
2014-02-11 16:56:39 -08:00
parent 9498ed17ab
commit b5728fa42e
5 changed files with 9 additions and 6 deletions

View File

@@ -9,6 +9,9 @@ function thing_init(&$a) {
if(! local_user())
return;
$account_id = $a->get_account();
$channel = $a->get_channel();
@@ -16,7 +19,7 @@ function thing_init(&$a) {
$name = escape_tags($_REQUEST['term']);
$verb = escape_tags($_REQUEST['verb']);
$profile_guid = escape_tags($_REQUEST['profile']);
$profile_guid = escape_tags($_REQUEST['profile_assign']);
$url = $_REQUEST['link'];
$photo = $_REQUEST['img'];
@@ -99,6 +102,7 @@ function thing_init(&$a) {
$p = q("select profile_guid, is_default from profile where uid = %d $sql limit 1",
intval(local_user())
);
if($p)
$profile = $p[0];
else
@@ -209,7 +213,6 @@ function thing_init(&$a) {
}
$ret = post_activity_item($arr);
}