forked from indymedia/epicyon
Each account gets a new share notification
parent
b877af4ae8
commit
6fc3eac50d
|
@ -145,7 +145,11 @@ def addShare(baseDir: str, \
|
||||||
saveJson(sharesJson,sharesFilename)
|
saveJson(sharesJson,sharesFilename)
|
||||||
|
|
||||||
# indicate that a new share is available
|
# indicate that a new share is available
|
||||||
newShareFile=baseDir+'/accounts/.newShare'
|
for subdir, dirs, files in os.walk(baseDir+'/accounts'):
|
||||||
|
for handle in dirs:
|
||||||
|
if '@' in handle:
|
||||||
|
accountDir=baseDir+'/accounts/'+handle
|
||||||
|
newShareFile=accountDir+'/.newShare'
|
||||||
if not os.path.isfile(newShareFile):
|
if not os.path.isfile(newShareFile):
|
||||||
try:
|
try:
|
||||||
with open(newShareFile, 'w') as fp:
|
with open(newShareFile, 'w') as fp:
|
||||||
|
|
|
@ -2195,7 +2195,7 @@ def htmlTimeline(translate: {},pageNumber: int, \
|
||||||
|
|
||||||
# should the Shares button be highlighted?
|
# should the Shares button be highlighted?
|
||||||
newShare=False
|
newShare=False
|
||||||
newShareFile=baseDir+'/accounts/.newShare'
|
newShareFile=accountDir+'/.newShare'
|
||||||
if os.path.isfile(newShareFile):
|
if os.path.isfile(newShareFile):
|
||||||
newShare=True
|
newShare=True
|
||||||
if boxName=='tlshares':
|
if boxName=='tlshares':
|
||||||
|
|
Loading…
Reference in New Issue