forked from indymedia/epicyon
Get nickname first
parent
cbdd2357c5
commit
b608406d4f
|
@ -3058,6 +3058,10 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
"""Updates the citations for a blog post after hitting
|
"""Updates the citations for a blog post after hitting
|
||||||
update button on the citations screen
|
update button on the citations screen
|
||||||
"""
|
"""
|
||||||
|
usersPath = path.replace('/citationsdata', '')
|
||||||
|
actorStr = httpPrefix + '://' + domainFull + usersPath
|
||||||
|
nickname = getNicknameFromActor(actorStr)
|
||||||
|
|
||||||
citationsFilename = \
|
citationsFilename = \
|
||||||
baseDir + '/accounts/' + \
|
baseDir + '/accounts/' + \
|
||||||
nickname + '@' + domain + '/.citations.txt'
|
nickname + '@' + domain + '/.citations.txt'
|
||||||
|
@ -3065,17 +3069,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if os.path.isfile(citationsFilename):
|
if os.path.isfile(citationsFilename):
|
||||||
os.remove(citationsFilename)
|
os.remove(citationsFilename)
|
||||||
|
|
||||||
usersPath = path.replace('/citationsdata', '')
|
|
||||||
actorStr = httpPrefix + '://' + domainFull + usersPath
|
|
||||||
if newswire and \
|
if newswire and \
|
||||||
' boundary=' in self.headers['Content-type']:
|
' boundary=' in self.headers['Content-type']:
|
||||||
boundary = self.headers['Content-type'].split('boundary=')[1]
|
boundary = self.headers['Content-type'].split('boundary=')[1]
|
||||||
if ';' in boundary:
|
if ';' in boundary:
|
||||||
boundary = boundary.split(';')[0]
|
boundary = boundary.split(';')[0]
|
||||||
|
|
||||||
# get the nickname
|
|
||||||
nickname = getNicknameFromActor(actorStr)
|
|
||||||
|
|
||||||
length = int(self.headers['Content-length'])
|
length = int(self.headers['Content-length'])
|
||||||
|
|
||||||
# check that the POST isn't too large
|
# check that the POST isn't too large
|
||||||
|
|
Loading…
Reference in New Issue