aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-29 18:29:27 -0700
committerfriendica <info@friendica.com>2012-07-29 18:29:27 -0700
commit4824e5b8b8d57ba9af8a5a26f78a5dc90eb714d1 (patch)
tree217a692747878df4b68a6db0cb163eca9024a2b4 /include
parenteae7522bc99cc3af0074c189560a66181d2b70a0 (diff)
downloadvolse-hubzilla-4824e5b8b8d57ba9af8a5a26f78a5dc90eb714d1.tar.gz
volse-hubzilla-4824e5b8b8d57ba9af8a5a26f78a5dc90eb714d1.tar.bz2
volse-hubzilla-4824e5b8b8d57ba9af8a5a26f78a5dc90eb714d1.zip
birthdays and events are now notifications
Diffstat (limited to 'include')
-rw-r--r--include/conversation.php1
-rw-r--r--include/zot.php6
2 files changed, 7 insertions, 0 deletions
diff --git a/include/conversation.php b/include/conversation.php
index f0d453cf5..74cf787bd 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1210,6 +1210,7 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) {
'$bang' => $x['bang'],
'$profile_uid' => $x['profile_uid'],
'$preview' => t('Preview'),
+ '$mobileapp' => t('Friendica mobile web'),
));
diff --git a/include/zot.php b/include/zot.php
index f49af08ad..82bd8c7f1 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -47,4 +47,10 @@ function zot_get_hubloc($arr,$primary) {
function zot_sign(&$item,$identity) {
$item['signed'] = str_replace(array(" ","\t","\n","\r"),array('','','',''),base64url_encode($item['body'],true));
$item['signature'] = base64url_encode(rsa_sign($item['signed'],$identity['prvkey']));
+}
+
+// Given an item and an identity, verify the signature.
+
+function zot_verify(&$item,$identity) {
+ return rsa_verify($item[signed'],base64url_decode($item['signature']),$identity['pubkey']);
} \ No newline at end of file