aboutsummaryrefslogtreecommitdiffstats
path: root/include/ItemObject.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-16 16:19:19 -0700
committerfriendica <info@friendica.com>2014-10-16 16:19:19 -0700
commit7bbe700f3f170cc4527131165a9b9ab1f99e5cd1 (patch)
tree8d04658594fe651637aaad89dda82d6ca3990cc8 /include/ItemObject.php
parent8391e8b1a179b9bda9198e0eb54171b4b88eb5f0 (diff)
downloadvolse-hubzilla-7bbe700f3f170cc4527131165a9b9ab1f99e5cd1.tar.gz
volse-hubzilla-7bbe700f3f170cc4527131165a9b9ab1f99e5cd1.tar.bz2
volse-hubzilla-7bbe700f3f170cc4527131165a9b9ab1f99e5cd1.zip
mark signature forgeries
Diffstat (limited to 'include/ItemObject.php')
-rw-r--r--include/ItemObject.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ItemObject.php b/include/ItemObject.php
index 7c75e35bd..90c036def 100644
--- a/include/ItemObject.php
+++ b/include/ItemObject.php
@@ -191,7 +191,8 @@ class Item extends BaseObject {
}
- $verified = (($item['item_flags'] & ITEM_VERIFIED) ? t('Message is verified') : '');
+ $verified = (($item['item_flags'] & ITEM_VERIFIED) ? t('Message signature validated') : '');
+ $forged = ((($item['sig']) && (! ($item['item_flags'] & ITEM_VERIFIED))) ? t('Message signature incorrect') : '');
$unverified = '' ; // (($this->is_wall_to_wall() && (! ($item['item_flags'] & ITEM_VERIFIED))) ? t('Message cannot be verified') : '');
@@ -269,6 +270,7 @@ class Item extends BaseObject {
'lock' => $lock,
'verified' => $verified,
'unverified' => $unverified,
+ 'forged' => $forged,
'location' => $location,
'indent' => $indent,
'owner_url' => $this->get_owner_url(),