aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-20 19:08:40 -0700
committerFriendika <info@friendika.com>2011-06-20 19:08:40 -0700
commit55112cfdd0dc63c8ad7f719aea5b46db37fcf081 (patch)
treebdd28ad235fdc20dc2b711c77d14c2f53f0a3868 /include/api.php
parentdb336929cd1211e6704914c77dc332d7555decff (diff)
downloadvolse-hubzilla-55112cfdd0dc63c8ad7f719aea5b46db37fcf081.tar.gz
volse-hubzilla-55112cfdd0dc63c8ad7f719aea5b46db37fcf081.tar.bz2
volse-hubzilla-55112cfdd0dc63c8ad7f719aea5b46db37fcf081.zip
item source
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/api.php b/include/api.php
index 2d9007126..cab1431d3 100644
--- a/include/api.php
+++ b/include/api.php
@@ -315,7 +315,7 @@
api_register_func('api/account/verify_credentials','api_account_verify_credentials', true);
- // TODO - media uploads and alternate 'source'
+ // TODO - media uploads
function api_statuses_update(&$a, $type) {
if (local_user()===false) return false;
@@ -379,7 +379,7 @@
'created_at' => api_date($lastwall['created']),
'id' => $lastwall['contact-id'],
'text' => strip_tags(bbcode($lastwall['body'])),
- 'source' => 'web',
+ 'source' => (($lastwall['app']) ? $lastwall['app'] : 'web'),
'truncated' => false,
'in_reply_to_status_id' => $in_reply_to_status_id,
'in_reply_to_user_id' => $in_reply_to_user_id,
@@ -436,7 +436,7 @@
'created_at' => api_date($lastwall['created']),
'id' => $lastwall['contact-id'],
'text' => strip_tags(bbcode($lastwall['body'])),
- 'source' => 'web',
+ 'source' => (($lastwall['app']) ? $lastwall['app'] : 'web'),
'truncated' => false,
'in_reply_to_status_id' => $in_reply_to_status_id,
'in_reply_to_user_id' => $in_reply_to_user_id,
@@ -492,7 +492,7 @@
'id' => $item['id'],
'text' => strip_tags(bbcode($item['body'])),
'html' => bbcode($item['body']),
- 'source' => 'web',
+ 'source' => (($item['app']) ? $item['app'] : 'web'),
'url' => ($item['plink']!=''?$item['plink']:$item['author-link']),
'truncated' => False,
'in_reply_to_status_id' => ($item['parent']!=$item['id']?$item['parent']:''),