s4

changeset 951:41032d34324d

Keep original author even if group admin edits heading
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 06 Nov 2021 11:23:09 +0900
parents 4099e5a30e27
children d5e87825195f
files s4-funcs.sh
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Wed Nov 03 14:38:15 2021 +0900
     1.2 +++ b/s4-funcs.sh	Sat Nov 06 11:23:09 2021 +0900
     1.3 @@ -4022,6 +4022,11 @@
     1.4        blogowner=`getvalbyid blog owner "$rowid"`
     1.5        if isgrpowner "$user" "$blogowner"; then
     1.6  	rowowner=$user
     1.7 +	origauthor=`getvalbyid blog author $rowid`
     1.8 +	if [ -n "$origauthor" -a x"$user" != x"$origauthor" ];
     1.9 +	then					# Keep original author
    1.10 +	  setpar author string "$origauthor"	# if differs from $user
    1.11 +	fi					# 2021-11-06 suggd.by Ruri
    1.12        else
    1.13  	rowowner=`query "SELECT author FROM $tbl WHERE rowid=$rowid;"`
    1.14        fi