changeset 28:7ae119a14613

Do not send comment notification when author is board owner
author HIROSE Yuuji <yuuji@gentei.org>
date Wed, 22 Jul 2015 09:19:04 +0900
parents 18b4d56a6206
children f4048bfdc7f5
files s4-blog.sh
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/s4-blog.sh	Wed Jul 22 09:07:59 2015 +0900
+++ b/s4-blog.sh	Wed Jul 22 09:19:04 2015 +0900
@@ -14,6 +14,7 @@
 blog_notify_reply() {
   # $1=articleid $2=ReplyingUser $3=WrittenText
   blogowner=`getvalbyid blog owner "$1"`
+  [ x"$2" = x"$blogowner" ] && return # If author=blogowner, unnecessary
   blogtitle=`getvalbyid blog title "$1"`
   blogurl="$urlbase?replyblog+$1"
   emails=`collectemail $blogowner`

yatex.org