mirror of https://gitlab.com/bashrc2/epicyon
More checks on visibility of items on person options
parent
2d86165795
commit
9145ac0801
|
@ -227,6 +227,7 @@ def htmlPersonOptions(defaultTimeline: str,
|
||||||
optionsStr += ' <input type="hidden" name="avatarUrl" value="' + \
|
optionsStr += ' <input type="hidden" name="avatarUrl" value="' + \
|
||||||
optionsProfileUrl + '">\n'
|
optionsProfileUrl + '">\n'
|
||||||
if authorized:
|
if authorized:
|
||||||
|
if originPathStr == '/users/' + nickname:
|
||||||
if optionsNickname:
|
if optionsNickname:
|
||||||
handle = optionsNickname + '@' + optionsDomainFull
|
handle = optionsNickname + '@' + optionsDomainFull
|
||||||
petname = getPetName(baseDir, nickname, domain, handle)
|
petname = getPetName(baseDir, nickname, domain, handle)
|
||||||
|
@ -265,7 +266,8 @@ def htmlPersonOptions(defaultTimeline: str,
|
||||||
optionsNickname + '@' + optionsDomain + '/.nonewswire'
|
optionsNickname + '@' + optionsDomain + '/.nonewswire'
|
||||||
checkboxStr = \
|
checkboxStr = \
|
||||||
' <input type="checkbox" ' + \
|
' <input type="checkbox" ' + \
|
||||||
'class="profilecheckbox" name="postsToNews" checked> ' + \
|
'class="profilecheckbox" ' + \
|
||||||
|
'name="postsToNews" checked> ' + \
|
||||||
translate['Allow news posts'] + \
|
translate['Allow news posts'] + \
|
||||||
'\n <button type="submit" class="buttonsmall" ' + \
|
'\n <button type="submit" class="buttonsmall" ' + \
|
||||||
'name="submitPostToNews">' + \
|
'name="submitPostToNews">' + \
|
||||||
|
@ -276,11 +278,13 @@ def htmlPersonOptions(defaultTimeline: str,
|
||||||
newswirePostsPermitted = True
|
newswirePostsPermitted = True
|
||||||
optionsStr += checkboxStr
|
optionsStr += checkboxStr
|
||||||
|
|
||||||
# whether blogs created by this account are moderated on the newswire
|
# whether blogs created by this account are moderated on
|
||||||
|
# the newswire
|
||||||
if newswirePostsPermitted:
|
if newswirePostsPermitted:
|
||||||
moderatedFilename = \
|
moderatedFilename = \
|
||||||
baseDir + '/accounts/' + \
|
baseDir + '/accounts/' + \
|
||||||
optionsNickname + '@' + optionsDomain + '/.newswiremoderated'
|
optionsNickname + '@' + \
|
||||||
|
optionsDomain + '/.newswiremoderated'
|
||||||
checkboxStr = \
|
checkboxStr = \
|
||||||
' <input type="checkbox" ' + \
|
' <input type="checkbox" ' + \
|
||||||
'class="profilecheckbox" name="modNewsPosts" checked> ' + \
|
'class="profilecheckbox" name="modNewsPosts" checked> ' + \
|
||||||
|
|
Loading…
Reference in New Issue