mirror of https://gitlab.com/bashrc2/epicyon
media timeline
parent
7c579e821b
commit
4b3ab2940f
|
@ -20,6 +20,7 @@ from webfinger import createWebfingerEndpoint
|
||||||
from webfinger import storeWebfingerEndpoint
|
from webfinger import storeWebfingerEndpoint
|
||||||
from posts import createDMTimeline
|
from posts import createDMTimeline
|
||||||
from posts import createRepliesTimeline
|
from posts import createRepliesTimeline
|
||||||
|
from posts import createMediaTimeline
|
||||||
from posts import createInbox
|
from posts import createInbox
|
||||||
from posts import createOutbox
|
from posts import createOutbox
|
||||||
from posts import createModeration
|
from posts import createModeration
|
||||||
|
@ -401,7 +402,7 @@ def personBoxJson(baseDir: str,domain: str,port: int,path: str, \
|
||||||
"""Obtain the inbox/outbox/moderation feed for the given person
|
"""Obtain the inbox/outbox/moderation feed for the given person
|
||||||
"""
|
"""
|
||||||
if boxname!='inbox' and boxname!='dm' and \
|
if boxname!='inbox' and boxname!='dm' and \
|
||||||
boxname!='tlreplies' and \
|
boxname!='tlreplies' and boxname!='tlmedia' and \
|
||||||
boxname!='outbox' and boxname!='moderation':
|
boxname!='outbox' and boxname!='moderation':
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -445,6 +446,9 @@ def personBoxJson(baseDir: str,domain: str,port: int,path: str, \
|
||||||
elif boxname=='tlreplies':
|
elif boxname=='tlreplies':
|
||||||
return createRepliesTimeline(baseDir,nickname,domain,port,httpPrefix, \
|
return createRepliesTimeline(baseDir,nickname,domain,port,httpPrefix, \
|
||||||
noOfItems,headerOnly,ocapAlways,pageNumber)
|
noOfItems,headerOnly,ocapAlways,pageNumber)
|
||||||
|
elif boxname=='tlmedia':
|
||||||
|
return createMediaTimeline(baseDir,nickname,domain,port,httpPrefix, \
|
||||||
|
noOfItems,headerOnly,ocapAlways,pageNumber)
|
||||||
elif boxname=='outbox':
|
elif boxname=='outbox':
|
||||||
return createOutbox(baseDir,nickname,domain,port,httpPrefix, \
|
return createOutbox(baseDir,nickname,domain,port,httpPrefix, \
|
||||||
noOfItems,headerOnly,authorized,pageNumber)
|
noOfItems,headerOnly,authorized,pageNumber)
|
||||||
|
|
3
posts.py
3
posts.py
|
@ -1888,6 +1888,9 @@ def createBoxBase(baseDir: str,boxname: str, \
|
||||||
elif boxname=='tlreplies':
|
elif boxname=='tlreplies':
|
||||||
if boxActor not in postStr:
|
if boxActor not in postStr:
|
||||||
isPost=False
|
isPost=False
|
||||||
|
elif boxname=='tlmedia':
|
||||||
|
if 'image/' not in postStr:
|
||||||
|
isPost=False
|
||||||
|
|
||||||
if isPost:
|
if isPost:
|
||||||
isTimelinePost=False
|
isTimelinePost=False
|
||||||
|
|
Loading…
Reference in New Issue