aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-08-25 23:09:19 +0200
committermarijus <mario@mariovavti.com>2014-08-25 23:09:19 +0200
commit9e8a2a06b538dd6d8919af9fb7ddfe55fc9e2a33 (patch)
treee3ad483db86b850da7563c0dba1686cf84216308
parenta512f54d93599d9680113a7572182cc53679496c (diff)
parent86fb165dc98e096c71cd94ccfccea29283e42f4b (diff)
downloadvolse-hubzilla-9e8a2a06b538dd6d8919af9fb7ddfe55fc9e2a33.tar.gz
volse-hubzilla-9e8a2a06b538dd6d8919af9fb7ddfe55fc9e2a33.tar.bz2
volse-hubzilla-9e8a2a06b538dd6d8919af9fb7ddfe55fc9e2a33.zip
Merge branch 'master' of https://github.com/friendica/red
-rw-r--r--include/conversation.php13
-rw-r--r--version.inc2
2 files changed, 14 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index daf1c723f..b14e609dd 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -262,6 +262,8 @@ function localize_item(&$item){
$item['body'] = sprintf($txt, $A, t($verb));
}
+
+
/*
// FIXME store parent item as object or target
// (and update to json storage)
@@ -363,6 +365,17 @@ function localize_item(&$item){
// if($sparkle)
// $item['plink'] = $y . '?f=&url=' . $item['plink'];
// }
+
+ // 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(($item['item_flags'] & ITEM_OBSCURED)
+ && strlen($item['body']) && (! strpos($item['body'],'data'))) {
+ $item['body'] = json_encode(crypto_encapsulate($item['body'],get_config('system','pubkey')));
+ }
+
+
}
/**
diff --git a/version.inc b/version.inc
index 5eaf3e43a..ccd4c24d1 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2014-08-24.777
+2014-08-25.778