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
# maximum number of posts to list in outbox feed
maxPostsInFeed=6
maxPostsInFeed=12
# reduced posts for media feed because it can take a while
maxPostsInMediaFeed=6

View File

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