aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mod/editpost.php9
1 files changed, 9 insertions, 0 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';