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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue