# HG changeset patch # User HIROSE Yuuji # Date 1437557085 -32400 # Node ID 13f9b5e5df858a2659cd59f939f3d2373f23e5d0 # Parent aa94b4c20944d9d45bc0b46be59c2c59c350d3de subshellize blog_notify_reply diff -r aa94b4c20944 -r 13f9b5e5df85 s4-blog.sh --- a/s4-blog.sh Wed Jul 22 18:22:39 2015 +0900 +++ b/s4-blog.sh Wed Jul 22 18:24:45 2015 +0900 @@ -11,13 +11,14 @@ blogowner=`getvalbyid blog owner "$1"` [ x"$blogowner" = x"$2" ] || isuser "$blogowner" || ismember "$2" "$blogowner" ) -blog_notify_reply() { +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" - case `getvalbyid blog notify "$1"` in + mode=`getvalbyid blog notify "$1"` + case $mode in admin) if isgroup "$owner"; then qgrp=`sqlquote $owner` @@ -30,7 +31,7 @@ no) return ;; *) emails=`collectemail $blogowner` ;; esac -err notify: emails="[$emails]" + ## err notify: mode=$mode emails="[$emails]" smail "$emails" "書込通知 $urlbase"< /'` EOF -} +) blog_showentry() { # $1=table $2=rowid if [ -n "$2" ]; then