aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-31 23:56:46 -0800
committerfriendica <info@friendica.com>2013-01-31 23:56:46 -0800
commit5ca88ca10a11a76237aa34d1d93ba3e878567767 (patch)
tree01f0ed98ea409e8183469bf616c572cd9046cee7 /mod/item.php
parent6b3d36c36d9a1c2da3e338ef7802c77b5fd82167 (diff)
downloadvolse-hubzilla-5ca88ca10a11a76237aa34d1d93ba3e878567767.tar.gz
volse-hubzilla-5ca88ca10a11a76237aa34d1d93ba3e878567767.tar.bz2
volse-hubzilla-5ca88ca10a11a76237aa34d1d93ba3e878567767.zip
debugging of file attachment api - somewhat functional but the attachment info structure in the item table needs to be re-done.
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index dba325e19..c482f3ea9 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -18,6 +18,7 @@
require_once('include/crypto.php');
require_once('include/enotify.php');
require_once('include/items.php');
+require_once('include/attach.php');
function item_post(&$a) {
@@ -477,7 +478,7 @@ function item_post(&$a) {
if($r['success']) {
if(strlen($attachments))
$attachments .= ',';
- $attachments .= '[attach]href="' . $a->get_baseurl() . '/attach/' . $r['data']['hash'] . '" length="' . $r['data']['filesize'] . '" type="' . $r['data']['filetype'] . '" title="' . $r['data']['filename'] . '"[/attach]';
+ $attachments .= '[attach]href="' . $a->get_baseurl() . '/attach/' . $r['data']['hash'] . '" length="' . $r['data']['filesize'] . '" type="' . $r['data']['filetype'] . '" title="' . urlencode($r['data']['filename']) . '" revision="' . $r['data']['revision'] . '"[/attach]';
}
$body = str_replace($match[1],'',$body);
}