diff options
author | Alexander Kampmann <programmer@nurfuerspam.de> | 2012-04-09 14:28:21 +0200 |
---|---|---|
committer | Alexander Kampmann <programmer@nurfuerspam.de> | 2012-04-09 14:28:21 +0200 |
commit | 1370ba5d162c7a1b9931c479e2f95dfd31d13b33 (patch) | |
tree | 1710427bd23b0928d824418a80b08c676f1820ac /mod/item.php | |
parent | 7187516718639fe93a9fb8fa78960bce85c7eaca (diff) | |
parent | 84142076a10b5ae52945ffc9b53e1626c5821525 (diff) | |
download | volse-hubzilla-1370ba5d162c7a1b9931c479e2f95dfd31d13b33.tar.gz volse-hubzilla-1370ba5d162c7a1b9931c479e2f95dfd31d13b33.tar.bz2 volse-hubzilla-1370ba5d162c7a1b9931c479e2f95dfd31d13b33.zip |
Merge branch 'master' of https://github.com/friendica/friendica
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php index 72e63865b..c30b17457 100644 --- a/mod/item.php +++ b/mod/item.php @@ -351,7 +351,7 @@ function item_post(&$a) { $image_uri = substr($image_uri,0, strpos($image_uri,'-')); if(! strlen($image_uri)) continue; - $srch = '<' . intval($profile_uid) . '>'; + $srch = '<' . intval($contact_record['id']) . '>'; $r = q("SELECT `id` FROM `photo` WHERE `allow_cid` = '%s' AND `allow_gid` = '' AND `deny_cid` = '' AND `deny_gid` = '' AND `resource-id` = '%s' AND `uid` = %d LIMIT 1", dbesc($srch), @@ -447,7 +447,7 @@ function item_post(&$a) { if(count($tags)) { foreach($tags as $tag) { - handle_tag($a, $body, $inform, $str_tags, $profile_uid, $tag); + handle_tag($a, $body, $inform, $str_tags, (local_user()) ? local_user() : $profile_uid , $tag); } } |