aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/conversation.php2
-rw-r--r--mod/rpost.php2
-rwxr-xr-xview/tpl/jot.tpl1
3 files changed, 4 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index e2a4a0723..fea53015e 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1130,7 +1130,7 @@ function status_editor($a,$x,$popup=false) {
'$bang' => $x['bang'],
'$profile_uid' => $x['profile_uid'],
'$preview' => $preview,
- '$sourceapp' => t($a->sourcename),
+ '$source' => ((x($x,'source')) ? $x['source'] : ''),
'$jotplugins' => $jotplugins,
'$defexpire' => '',
'$feature_expire' => ((feature_enabled($x['profile_uid'],'content_expire') && (! $webpage)) ? 'block' : 'none'),
diff --git a/mod/rpost.php b/mod/rpost.php
index 820799218..8e01ef5d4 100644
--- a/mod/rpost.php
+++ b/mod/rpost.php
@@ -17,6 +17,7 @@ require_once('include/zot.php');
* f= placeholder, often required
* title= Title of post
* body= Body of post
+ * source= Source application
* remote_return= absolute URL to return after posting is finished
* type= choices are 'html' or 'bbcode', default is 'bbcode'
*
@@ -107,6 +108,7 @@ function rpost_content(&$a) {
'profile_uid' => local_user(),
'title' => $_REQUEST['title'],
'body' => $_REQUEST['body'],
+ 'source' => ((x($_REQUEST,'source')) ? strip_tags($_REQUEST['source']) : ''),
'return_path' => 'rpost/return'
);
diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl
index cf65b976e..ef91f45be 100755
--- a/view/tpl/jot.tpl
+++ b/view/tpl/jot.tpl
@@ -7,6 +7,7 @@
<input type="hidden" name="location" id="jot-location" value="{{$defloc}}" />
<input type="hidden" name="expire" id="jot-expire" value="{{$defexpire}}" />
<input type="hidden" name="media_str" id="jot-media" value="" />
+ <input type="hidden" name="source" id="jot-source" value="{{$source}}" />
<input type="hidden" name="coord" id="jot-coord" value="" />
<input type="hidden" name="post_id" value="{{$post_id}}" />
<input type="hidden" name="webpage" value="{{$webpage}}" />