mirror of https://gitlab.com/bashrc2/epicyon
Back to original posts per page
parent
5908a63882
commit
ed067498da
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue