diff options
author | friendica <info@friendica.com> | 2015-01-22 18:41:10 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-22 18:41:10 -0800 |
commit | 6e0e3b2433fc426b758a55811f56536d58705813 (patch) | |
tree | a8d8fb7c63216cea94765e93be935f2b9d2fe227 /include/conversation.php | |
parent | e46eba125888704b4381aa8418495e91eeb565c8 (diff) | |
download | volse-hubzilla-6e0e3b2433fc426b758a55811f56536d58705813.tar.gz volse-hubzilla-6e0e3b2433fc426b758a55811f56536d58705813.tar.bz2 volse-hubzilla-6e0e3b2433fc426b758a55811f56536d58705813.zip |
more expanding item flags
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/include/conversation.php b/include/conversation.php index e81bb49e0..5a9e4a59e 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -357,21 +357,12 @@ function localize_item(&$item){ } } */ - // add sparkle links to appropriate permalinks - -// $x = stristr($item['plink'],'/display/'); -// if($x) { -// $sparkle = false; -// $y = best_link_url($item,$sparkle,true); - // 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) + if(intval($item['item_obscured']) && strlen($item['body']) && (! strpos($item['body'],'data'))) { $item['body'] = json_encode(crypto_encapsulate($item['body'],get_config('system','pubkey'))); } @@ -655,8 +646,8 @@ function conversation(&$a, $items, $mode, $update, $page_mode = 'traditional', $ $likebuttons = false; $shareable = false; - $verified = (($item['item_flags'] & ITEM_VERIFIED) ? t('Message signature validated') : ''); - $forged = ((($item['sig']) && (! ($item['item_flags'] & ITEM_VERIFIED))) ? t('Message signature incorrect') : ''); + $verified = (intval($item['item_verified']) ? t('Message signature validated') : ''); + $forged = ((($item['sig']) && (! intval($item['item_verified']))) ? t('Message signature incorrect') : ''); $unverified = ''; |