diff --git a/webinterface.py b/webinterface.py index 8dc9ed97..cc4e3b30 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5431,6 +5431,27 @@ def htmlPersonOptions(translate: {}, baseDir: str, petname + '">' \ '
' + + if isFollowingActor(baseDir, nickname, domain, optionsActor): + if receivingCalendarEvents(baseDir, nickname, domain, + optionsNickname, optionsDomainFull): + optionsStr += \ + '
' + \ + translate['Receive calendar events from this account'] + \ + '' + else: + optionsStr += \ + '
' + \ + translate['Receive calendar events from this account'] + \ + '' + optionsStr += optionsLinkStr optionsStr += \ ' ' - if isFollowingActor(baseDir, nickname, domain, optionsActor): - actorNickname = getNicknameFromActor(optionsActor) - actorDomain, actorPort = getDomainFromActor(optionsActor) - if receivingCalendarEvents(baseDir, nickname, domain, - actorNickname, actorDomain): - optionsStr += \ - '
' + \ - translate['Receive calendar events from this account'] + \ - '' - else: - optionsStr += \ - '
' + \ - translate['Receive calendar events from this account'] + \ - '' optionsStr += ' ' optionsStr += ''