aboutsummaryrefslogtreecommitdiffstats
path: root/mod/thing.php
diff options
context:
space:
mode:
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);
-
}