aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-06 02:57:33 -0700
committerfriendica <info@friendica.com>2014-04-06 02:57:33 -0700
commitad60e2c566930409d853517ca9392f169fc8e747 (patch)
tree120630a3c0dbf43de66ab5f46714a7f75072e2c5 /mod
parenta2b949f3393206ffe2e1195d6abaa883f299b471 (diff)
downloadvolse-hubzilla-ad60e2c566930409d853517ca9392f169fc8e747.tar.gz
volse-hubzilla-ad60e2c566930409d853517ca9392f169fc8e747.tar.bz2
volse-hubzilla-ad60e2c566930409d853517ca9392f169fc8e747.zip
use parent_mid in the parent query for enotify instead of of the parent id. This should fix the issue with encrypted content in the notification messages (for locally posted replies). The fix was a bit harder than anticipated because we store the parent id as an int in the notify table so this had to be modified to char storage as well.
Diffstat (limited to 'mod')
-rw-r--r--mod/notify.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/notify.php b/mod/notify.php
index 23ba098b7..6ee4260ce 100644
--- a/mod/notify.php
+++ b/mod/notify.php
@@ -11,7 +11,7 @@ function notify_init(&$a) {
intval(local_user())
);
if($r) {
- q("update notify set seen = 1 where ( link = '%s' or ( parent != 0 and parent = %d and otype = '%s' )) and uid = %d",
+ q("update notify set seen = 1 where ( link = '%s' or ( parent != '' and parent = '%s' and otype = '%s' )) and uid = %d",
dbesc($r[0]['link']),
intval($r[0]['parent']),
dbesc($r[0]['otype']),