From f5be8eb132c0ac5e2dea228dfb7db7d6433d1399 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 24 Jun 2020 13:55:39 +0100 Subject: [PATCH] @ prefix --- daemon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index 09d1d041..cb23c161 100644 --- a/daemon.py +++ b/daemon.py @@ -3360,10 +3360,10 @@ class PubServer(BaseHTTPRequestHandler): if ('/users/' in self.path and (self.path.endswith('/newpost') or self.path.endswith('/newblog') or - self.path.endswith('/newreminder') or self.path.endswith('/newunlisted') or self.path.endswith('/newfollowers') or self.path.endswith('/newdm') or + self.path.endswith('/newreminder') or self.path.endswith('/newreport') or self.path.endswith('/newquestion') or self.path.endswith('/newshare'))): @@ -5440,8 +5440,8 @@ class PubServer(BaseHTTPRequestHandler): messageJson = None handle = nickname + '@' + self.server.domainFull print('A reminder was posted for ' + handle) - if handle not in fields['message']: - fields['message'] = handle + ' ' + fields['message'] + if '@' + handle not in fields['message']: + fields['message'] = '@' + handle + ' ' + fields['message'] messageJson = \ createDirectMessagePost(self.server.baseDir, nickname,