aboutsummaryrefslogtreecommitdiffstats
path: root/mod/notify.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-22 22:36:07 -0800
committerfriendica <info@friendica.com>2012-02-22 22:36:07 -0800
commit808b886a3e18b07c63171c4833334e2cf77ddf71 (patch)
treeca88e82039b5b5c0ceafec9a6fffc369e3c852eb /mod/notify.php
parent9fe12d1724acf819f2cbc88bf6647e0adee0b5ea (diff)
parent3c6b127d40e2f0ea1c2d8eb7114c3e121b58ba2e (diff)
downloadvolse-hubzilla-808b886a3e18b07c63171c4833334e2cf77ddf71.tar.gz
volse-hubzilla-808b886a3e18b07c63171c4833334e2cf77ddf71.tar.bz2
volse-hubzilla-808b886a3e18b07c63171c4833334e2cf77ddf71.zip
Merge branch 'master' into notify
Diffstat (limited to 'mod/notify.php')
-rw-r--r--mod/notify.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/notify.php b/mod/notify.php
index d1e5022bc..229020f4a 100644
--- a/mod/notify.php
+++ b/mod/notify.php
@@ -20,6 +20,16 @@ function notify_init(&$a) {
goaway($a->get_baseurl());
}
+
+ if($a->argc > 2 && $a->argv[1] === 'mark' && $a->argv[2] === 'all' ) {
+ $r = q("update notify set seen = 1 where uid = %d",
+ intval(local_user())
+ );
+ $j = json_encode(array('result' => ($r) ? 'success' : 'fail'));
+ echo $j;
+ killme();
+ }
+
}