fix signature URL
This commit is contained in:
parent
ea8ec06637
commit
3254514423
2 changed files with 7 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ class PhpBBBackend(BaseBackend, ICapMessages):
|
|||
signature = post.signature
|
||||
if signature:
|
||||
signature += '<br />'
|
||||
signature += 'URL: %s' % id2url('%s.%s' % (thread.id, post.id))
|
||||
signature += 'URL: %s/%s' % (self.browser.absurl(id2url('%s.%s' % (thread.id, post.id))))
|
||||
return Message(thread=thread,
|
||||
id=post.id,
|
||||
title=post.title,
|
||||
|
|
|
|||
|
|
@ -48,6 +48,9 @@ class PhpBB(BaseBrowser):
|
|||
self.BASEPATH = v.path[:v.path.rfind('/')]
|
||||
BaseBrowser.__init__(self, *args, **kwargs)
|
||||
|
||||
def absurl(self, rel):
|
||||
return BaseBrowser.absurl(self, '%s/%s' % (self.BASEPATH, rel))
|
||||
|
||||
def home(self):
|
||||
self.location(self.url)
|
||||
|
||||
|
|
@ -140,3 +143,6 @@ class PhpBB(BaseBrowser):
|
|||
post.parent = self.page.get_last_post_id()
|
||||
|
||||
return post
|
||||
|
||||
def post_answer(self, topic, title, content):
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue