aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-04-16 23:26:11 +0200
committerMario Vavti <mario@mariovavti.com>2015-04-16 23:26:11 +0200
commit9addc4581edf594996151eaf514927d271f04da5 (patch)
tree26abc7f97994ee66c103ba6ded0c75168fbb1f6b /mod
parent90d3a6c02dd12317c72ad790a1b6810f885f638c (diff)
downloadvolse-hubzilla-9addc4581edf594996151eaf514927d271f04da5.tar.gz
volse-hubzilla-9addc4581edf594996151eaf514927d271f04da5.tar.bz2
volse-hubzilla-9addc4581edf594996151eaf514927d271f04da5.zip
provide a separate input field for rpost attachments
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php2
-rw-r--r--mod/rpost.php1
2 files changed, 2 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index 53064132c..d80241f2d 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -22,7 +22,6 @@ require_once('include/attach.php');
function item_post(&$a) {
-
// This will change. Figure out who the observer is and whether or not
// they have permission to post here. Else ignore the post.
@@ -399,6 +398,7 @@ function item_post(&$a) {
$verb = notags(trim($_REQUEST['verb']));
$title = escape_tags(trim($_REQUEST['title']));
$body = trim($_REQUEST['body']);
+ $body .= trim($_REQUEST['attachment']);
$postopts = '';
$private = (
diff --git a/mod/rpost.php b/mod/rpost.php
index 1bde121e4..737d705f6 100644
--- a/mod/rpost.php
+++ b/mod/rpost.php
@@ -124,6 +124,7 @@ function rpost_content(&$a) {
'profile_uid' => local_channel(),
'title' => $_REQUEST['title'],
'body' => $_REQUEST['body'],
+ 'attachment' => $_REQUEST['attachment'],
'source' => ((x($_REQUEST,'source')) ? strip_tags($_REQUEST['source']) : ''),
'return_path' => 'rpost/return'
);