Back to original posts per page

main2
Bob Mottram 2019-10-19 09:42:54 +01:00
parent 5908a63882
commit ed067498da
2 changed files with 4 additions and 7 deletions

View File

@ -135,7 +135,7 @@ import os
import sys import sys
# maximum number of posts to list in outbox feed # maximum number of posts to list in outbox feed
maxPostsInFeed=6 maxPostsInFeed=12
# reduced posts for media feed because it can take a while # reduced posts for media feed because it can take a while
maxPostsInMediaFeed=6 maxPostsInMediaFeed=6

View File

@ -114,14 +114,11 @@ def getPersonAvatarUrl(baseDir: str,personUrl: str,personCache: {}) -> str:
# get from locally stored image # get from locally stored image
actorStr=personJson['id'].replace('/','-') actorStr=personJson['id'].replace('/','-')
avatarImagePath=baseDir+'/cache/avatars/'+actorStr avatarImagePath=baseDir+'/cache/avatars/'+actorStr
avatarImageFilename=avatarImagePath+'.png' if os.path.isfile(avatarImagePath+'.png'):
if os.path.isfile(avatarImageFilename):
return '/avatars/'+actorStr+'.png' return '/avatars/'+actorStr+'.png'
avatarImageFilename=avatarImagePath+'.jpg' if os.path.isfile(avatarImagePath+'.jpg'):
if os.path.isfile(avatarImageFilename):
return '/avatars/'+actorStr+'.jpg' return '/avatars/'+actorStr+'.jpg'
avatarImageFilename=avatarImagePath+'.gif' if os.path.isfile(avatarImagePath+'.gif'):
if os.path.isfile(avatarImageFilename):
return '/avatars/'+actorStr+'.gif' return '/avatars/'+actorStr+'.gif'
if os.path.isfile(avatarImagePath): if os.path.isfile(avatarImagePath):
return '/avatars/'+actorStr return '/avatars/'+actorStr