diff options
author | friendica <info@friendica.com> | 2013-09-16 22:51:39 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-16 22:51:39 -0700 |
commit | a78b76d3938b6747da97bc729521c58f9491105f (patch) | |
tree | d25ca41dd37583ad2dc680501ecf52731e0fe2c2 /include/api.php | |
parent | c6d6c01fb619b37fa47f19966421a6636155180c (diff) | |
download | volse-hubzilla-a78b76d3938b6747da97bc729521c58f9491105f.tar.gz volse-hubzilla-a78b76d3938b6747da97bc729521c58f9491105f.tar.bz2 volse-hubzilla-a78b76d3938b6747da97bc729521c58f9491105f.zip |
more work on viewing obscured api posts
Diffstat (limited to 'include/api.php')
-rw-r--r-- | include/api.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/api.php b/include/api.php index 0ca8393c1..2760914e9 100644 --- a/include/api.php +++ b/include/api.php @@ -730,7 +730,8 @@ require_once('include/photos.php'); $in_reply_to_user_id = $user_info['id']; $in_reply_to_screen_name = $user_info['screen_name']; } - } + } + unobscure($lastwall); $status_info = array( 'text' => html2plain(prepare_text($lastwall['body'],$lastwall['mimetype']), 0), 'truncated' => false, @@ -803,6 +804,7 @@ require_once('include/photos.php'); $in_reply_to_screen_name = $user_info['screen_name']; } } + unobscure($lastwall); $user_info['status'] = array( 'text' => html2plain(prepare_text($lastwall['body'],$lastwall['mimetype']), 0), 'truncated' => false, @@ -1369,7 +1371,7 @@ require_once('include/photos.php'); 'recipient_screen_name' => $recipient['screen_name'], 'recipient' => $recipient, ); - + unobscure($item); //don't send title to regular StatusNET requests to avoid confusing these apps if (x($_GET, 'getText')) { $ret['title'] = $item['title'] ; @@ -1425,7 +1427,7 @@ require_once('include/photos.php'); $in_reply_to_user_id = 0; $in_reply_to_status_id = 0; } - + unobscure($item); // Workaround for ostatus messages where the title is identically to the body $statusbody = trim(html2plain(prepare_text($item['body'],$item['mimetype']), 0)); $statustitle = trim($item['title']); |