forked from indymedia/epicyon
DM timeline
parent
88a320603b
commit
348df00736
|
@ -76,6 +76,7 @@ from roles import setRole
|
||||||
from roles import clearModeratorStatus
|
from roles import clearModeratorStatus
|
||||||
from skills import outboxSkills
|
from skills import outboxSkills
|
||||||
from availability import outboxAvailability
|
from availability import outboxAvailability
|
||||||
|
from webinterface import htmlInboxDMs
|
||||||
from webinterface import htmlUnblockConfirm
|
from webinterface import htmlUnblockConfirm
|
||||||
from webinterface import htmlPersonOptions
|
from webinterface import htmlPersonOptions
|
||||||
from webinterface import htmlIndividualPost
|
from webinterface import htmlIndividualPost
|
||||||
|
@ -1409,7 +1410,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.httpPrefix, \
|
self.server.httpPrefix, \
|
||||||
maxPostsInFeed, 'dm', \
|
maxPostsInFeed, 'dm', \
|
||||||
True,self.server.ocapAlways)
|
True,self.server.ocapAlways)
|
||||||
msg=htmlInbox(pageNumber,maxPostsInFeed, \
|
msg=htmlInboxDMs(pageNumber,maxPostsInFeed, \
|
||||||
self.server.session, \
|
self.server.session, \
|
||||||
self.server.baseDir, \
|
self.server.baseDir, \
|
||||||
self.server.cachedWebfingers, \
|
self.server.cachedWebfingers, \
|
||||||
|
|
|
@ -1467,6 +1467,17 @@ def htmlInbox(pageNumber: int,itemsPerPage: int, \
|
||||||
nickname,domain,port,inboxJson,'inbox',allowDeletion, \
|
nickname,domain,port,inboxJson,'inbox',allowDeletion, \
|
||||||
httpPrefix,projectVersion)
|
httpPrefix,projectVersion)
|
||||||
|
|
||||||
|
def htmlInboxDMs(pageNumber: int,itemsPerPage: int, \
|
||||||
|
session,baseDir: str,wfRequest: {},personCache: {}, \
|
||||||
|
nickname: str,domain: str,port: int,inboxJson: {}, \
|
||||||
|
allowDeletion: bool, \
|
||||||
|
httpPrefix: str,projectVersion: str) -> str:
|
||||||
|
"""Show the DM timeline as html
|
||||||
|
"""
|
||||||
|
return htmlTimeline(pageNumber,itemsPerPage,session,baseDir,wfRequest,personCache, \
|
||||||
|
nickname,domain,port,inboxJson,'dm',allowDeletion, \
|
||||||
|
httpPrefix,projectVersion)
|
||||||
|
|
||||||
def htmlModeration(pageNumber: int,itemsPerPage: int, \
|
def htmlModeration(pageNumber: int,itemsPerPage: int, \
|
||||||
session,baseDir: str,wfRequest: {},personCache: {}, \
|
session,baseDir: str,wfRequest: {},personCache: {}, \
|
||||||
nickname: str,domain: str,port: int,inboxJson: {}, \
|
nickname: str,domain: str,port: int,inboxJson: {}, \
|
||||||
|
|
Loading…
Reference in New Issue