Mercurial > hgrepos > hgweb.cgi > s4
changeset 55:7f9f7e898986
Do not send notification to the person-self
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Thu, 23 Jul 2015 11:07:24 +0900 |
parents | d08e556f3462 |
children | 7fa1ac62dfaf |
files | s4-blog.sh |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-blog.sh Thu Jul 23 09:56:51 2015 +0900 +++ b/s4-blog.sh Thu Jul 23 11:07:24 2015 +0900 @@ -20,10 +20,11 @@ mode=`getvalbyid blog notify "$1"` case $mode in admin) - if isgroup "$owner"; then - qgrp=`sqlquote $owner` - admins=`query "select user from grp_adm where gname=$qgrp;"` - emails=`collectemail $admins` + if isgroup "$blogowner"; then + emails=`for i in $(getgroupadmins $blogowner); do\ + [ x"$i" = x"$user" ] && continue;\ + email4group "$i" "$blogowner";\ + done` else emails=`collectemail $blogowner` fi @@ -31,7 +32,7 @@ no) return ;; *) emails=`collectemail $blogowner` ;; esac - ## err notify: mode=$mode emails="[$emails]" +## err notify: user=$user Admins=`getgroupadmins $blogowner` Mode=$mode Emails="[$emails]" smail "$emails" "書込通知 $urlbase"<<EOF [$blogtitle]板に書き込みがありました。 場所: $blogurl