s4

changeset 430:ce497c515996

Skip notify check when replymark is null and author=owner
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 06 May 2017 18:06:48 +0859
parents c3bf12c5dba6
children 703346e6e7de
files s4-blog.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/s4-blog.sh	Sat May 06 18:03:39 2017 +0859
     1.2 +++ b/s4-blog.sh	Sat May 06 18:06:48 2017 +0859
     1.3 @@ -31,8 +31,6 @@
     1.4    # $1=blogid $2=ReplyingUser $3=WrittenText $4(optional)=Action
     1.5    blogid="${1%%[!A-Z0-9a-z_]*}"
     1.6    blogowner=`getvalbyid blog owner "$blogid"`
     1.7 -  ## 2017-0505 Need reply even if the author is owner for explicit reply
     1.8 -  ##[ x"$2" = x"$blogowner" ] && return # If author=blogowner, unnecessary
     1.9    blogtitle=`getvalbyid blog title "$blogid"`
    1.10    blogurl="$urlbase?replyblog+$blogid"
    1.11    action=${4:-書き込み}
    1.12 @@ -77,6 +75,8 @@
    1.13        done
    1.14        action="${whom}への返信"
    1.15      fi
    1.16 +  else
    1.17 +    [ x"$2" = x"$blogowner" ] && return # If author=blogowner, unnecessary
    1.18    fi
    1.19    test -z "$emails" && return
    1.20    err notify: user=$user Admins=`getgroupadmins $blogowner` Mode=$mode Emails="[$emails]"