diff options
author | friendica <info@friendica.com> | 2012-07-03 21:40:13 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-03 21:40:13 -0700 |
commit | c726a92a3fee9e6dec3ad5af8c4e412491f109b8 (patch) | |
tree | 760560cf324ca91187ebd79e41ab64bf75c94818 /include/enotify.php | |
parent | b550b1326b9e45c1938b738407c6b32cbace09cb (diff) | |
download | volse-hubzilla-c726a92a3fee9e6dec3ad5af8c4e412491f109b8.tar.gz volse-hubzilla-c726a92a3fee9e6dec3ad5af8c4e412491f109b8.tar.bz2 volse-hubzilla-c726a92a3fee9e6dec3ad5af8c4e412491f109b8.zip |
punycode hostname
Diffstat (limited to 'include/enotify.php')
-rw-r--r-- | include/enotify.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/enotify.php b/include/enotify.php index 134e42f8e..5e073bf3c 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -54,6 +54,20 @@ function notification($params) { $parent_id = $params['parent']; + // Check to see if there was already a tag notify for this post. + // If so don't create a second notification + + $p = null; + $p = q("select id from notify where type = %d and link = '%s' and uid = %d limit 1", + intval(NOTIFY_TAGSELF), + dbesc($params['link']), + intval($params['uid']) + ); + if($p and count($p)) { + pop_lang(); + return; + } + // if it's a post figure out who's post it is. |