Don't send notifications generated internally in the system
commitd8889fd37d1157ff64f2f094156f89afbfd27553
authorMagnus Hagander <magnus@hagander.net>
Thu, 29 Mar 2018 10:00:05 +0000 (29 12:00 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 29 Mar 2018 10:00:05 +0000 (29 12:00 +0200)
tree831c1fafa36a11f1c2ef255b141b259a2c241ed4
parentc11e39415b9c87636d608dcd567a1a5b46068896
Don't send notifications generated internally in the system

Django 1.11 fires the save signals in more cases than 1.8 did it seems,
so we can generate extra notifications for example when the twitter
script posts a news item to twitter.

To avoid this, just don't send notification if the user is unknown
(=None).

Per discussion with Jonathan
pgweb/util/signals.py