aboutsummaryrefslogtreecommitdiffstats
path: root/mod/thing.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-11 16:56:39 -0800
committerfriendica <info@friendica.com>2014-02-11 16:56:39 -0800
commitb5728fa42efa0d12da8814711e0875da7fb88672 (patch)
tree1499b03be17dc9d59f04cac0c31f75427f89ac6e /mod/thing.php
parent9498ed17ab4d71d926c47d02f4c9ae2f97e1a1d1 (diff)
downloadvolse-hubzilla-b5728fa42efa0d12da8814711e0875da7fb88672.tar.gz
volse-hubzilla-b5728fa42efa0d12da8814711e0875da7fb88672.tar.bz2
volse-hubzilla-b5728fa42efa0d12da8814711e0875da7fb88672.zip
fixes to thing profile assignments
Diffstat (limited to 'mod/thing.php')
-rw-r--r--mod/thing.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/thing.php b/mod/thing.php
index d3b47ebb9..9b362cecd 100644
--- a/mod/thing.php
+++ b/mod/thing.php
@@ -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);
-
}