aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-23 21:01:59 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-23 21:01:59 -0700
commit1a0655f34ea9979c7a08d21344d3e0eb9eb3246d (patch)
tree5dde4224a3c762bcc1935b2e67464939e57a60d2 /include/text.php
parentcb76fb8b9b659c4ec06e359f375a35a534927b99 (diff)
downloadvolse-hubzilla-1a0655f34ea9979c7a08d21344d3e0eb9eb3246d.tar.gz
volse-hubzilla-1a0655f34ea9979c7a08d21344d3e0eb9eb3246d.tar.bz2
volse-hubzilla-1a0655f34ea9979c7a08d21344d3e0eb9eb3246d.zip
more work on mail flags
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/text.php b/include/text.php
index 377c1c46f..33562a69f 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1251,10 +1251,9 @@ function unobscure(&$item) {
if($item['body'])
$item['body'] = crypto_unencapsulate(json_decode_plus($item['body']),$key);
if(get_config('system','item_cache')) {
- q("update item set title = '%s', body = '%s', item_flags = %d where id = %d",
+ q("update item set title = '%s', body = '%s', item_obscured = 0 where id = %d",
dbesc($item['title']),
dbesc($item['body']),
- intval($item['item_flags'] - ITEM_OBSCURED),
intval($item['id'])
);
}
@@ -1262,7 +1261,7 @@ function unobscure(&$item) {
}
function unobscure_mail(&$item) {
- if(array_key_exists('mail_flags',$item) && ($item['mail_flags'] & MAIL_OBSCURED)) {
+ if(array_key_exists('mail_obscured',$item) && intval($item['mail_obscured'])) {
if($item['title'])
$item['title'] = base64url_decode(str_rot47($item['title']));
if($item['body'])