aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-18 21:18:49 -0700
committerzotlabs <mike@macgirvin.com>2017-04-18 21:18:49 -0700
commit397fef519c7929c70636c50015f7a0389062bab5 (patch)
tree367d423542595fb831f3e06318a1a628871bea4d /include/conversation.php
parent53bd0146bb9a924a103646db0b628ede28d294a1 (diff)
downloadvolse-hubzilla-397fef519c7929c70636c50015f7a0389062bab5.tar.gz
volse-hubzilla-397fef519c7929c70636c50015f7a0389062bab5.tar.bz2
volse-hubzilla-397fef519c7929c70636c50015f7a0389062bab5.zip
give the item_obscured flag a new lease on life by using it to designate third party client-side e2ee or binary content which can only be downloaded and not viewed directly on the web (as a side effect this also allows binary files to be submitted as activities/content). The content display is suppressed and replaced with a download button. This is unfinished but harmless to backport while work is in progress unless told otherwise. Future development will take care of the remaining loose ends.
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/conversation.php b/include/conversation.php
index 5b2d60583..93a6d7406 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -353,14 +353,6 @@ function localize_item(&$item){
}
*/
- // if item body was obscured and we changed it, re-obscure it
- // FIXME - we need a better filter than just the string 'data'; try and
- // match the fact that it's json encoded
-
- if(intval($item['item_obscured'])
- && strlen($item['body']) && (! strpos($item['body'],'data'))) {
- $item['body'] = z_obscure($item['body']);
- }
}