diff options
author | zottel <github@zottel.net> | 2014-02-15 00:52:25 +0100 |
---|---|---|
committer | zottel <github@zottel.net> | 2014-02-15 00:52:25 +0100 |
commit | 54727d3a66df92596378ea7f5c412d5e6037b037 (patch) | |
tree | 9b455bd32a2b5a2c3aaa1c243f8972ff4bcf96e8 /mod | |
parent | 7a6fcd9ea42ffc5877721589d315d3dbd71560ff (diff) | |
parent | d9e4f634665ec4da69b5af230f45f2a0e9688a1b (diff) | |
download | volse-hubzilla-54727d3a66df92596378ea7f5c412d5e6037b037.tar.gz volse-hubzilla-54727d3a66df92596378ea7f5c412d5e6037b037.tar.bz2 volse-hubzilla-54727d3a66df92596378ea7f5c412d5e6037b037.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mod')
-rw-r--r-- | mod/editpost.php | 9 | ||||
-rw-r--r-- | mod/item.php | 2 | ||||
-rw-r--r-- | mod/post.php | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/mod/editpost.php b/mod/editpost.php index 918a70d36..8c4117e7a 100644 --- a/mod/editpost.php +++ b/mod/editpost.php @@ -92,6 +92,15 @@ function editpost_content(&$a) { } + if($itm[0]['attach']) { + $j = json_decode($itm[0]['attach'],true); + if($j) { + foreach($j as $jj) { + $itm[0]['body'] .= "\n" . '[attachment]' . basename($jj['href']) . ',' . $jj['revision'] . '[/attachment]' . "\n"; + } + } + } + $cipher = get_pconfig(get_app()->profile['profile_uid'],'system','default_cipher'); if(! $cipher) $cipher = 'aes256'; diff --git a/mod/item.php b/mod/item.php index 54c9f128a..fef9bfb6d 100644 --- a/mod/item.php +++ b/mod/item.php @@ -44,7 +44,7 @@ function item_post(&$a) { call_hooks('post_local_start', $_REQUEST); - // logger('postvars ' . print_r($_REQUEST,true), LOGGER_DATA); +// logger('postvars ' . print_r($_REQUEST,true), LOGGER_DATA); $api_source = ((x($_REQUEST,'api_source') && $_REQUEST['api_source']) ? true : false); diff --git a/mod/post.php b/mod/post.php index 919f09a35..6c57bfa0d 100644 --- a/mod/post.php +++ b/mod/post.php @@ -828,7 +828,7 @@ function post_post(&$a) { 'xchan_guid' => $sender['guid'], 'xchan_guid_sig' => $sender['guid_sig'], 'hubloc_url' => $sender['url'] - ),null); + ),null,(($msgtype === 'force_refresh') ? true : false)); } $ret['success'] = true; json_return_and_die($ret); |