diff options
author | friendica <info@friendica.com> | 2012-02-22 22:36:07 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-02-22 22:36:07 -0800 |
commit | 808b886a3e18b07c63171c4833334e2cf77ddf71 (patch) | |
tree | ca88e82039b5b5c0ceafec9a6fffc369e3c852eb /mod/notify.php | |
parent | 9fe12d1724acf819f2cbc88bf6647e0adee0b5ea (diff) | |
parent | 3c6b127d40e2f0ea1c2d8eb7114c3e121b58ba2e (diff) | |
download | volse-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.php | 10 |
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(); + } + } |