Origin check

merge-requests/30/head
Bob Mottram 2021-02-23 17:45:53 +00:00
parent 8635d68e3e
commit 2d86165795
1 changed files with 1 additions and 2 deletions

View File

@ -351,8 +351,7 @@ def htmlPersonOptions(defaultTimeline: str,
translate['Info'] + '</button>\n' translate['Info'] + '</button>\n'
personNotes = '' personNotes = ''
print('originPathStr=' + originPathStr) if originPathStr == '/users/' + nickname:
if originPathStr.startswith('/users/' + nickname + '/'):
personNotesFilename = \ personNotesFilename = \
baseDir + '/accounts/' + nickname + '@' + domain + \ baseDir + '/accounts/' + nickname + '@' + domain + \
'/notes/' + handle + '.txt' '/notes/' + handle + '.txt'