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
|
signature = post.signature
|
||||||
if signature:
|
if signature:
|
||||||
signature += '<br />'
|
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,
|
return Message(thread=thread,
|
||||||
id=post.id,
|
id=post.id,
|
||||||
title=post.title,
|
title=post.title,
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,9 @@ class PhpBB(BaseBrowser):
|
||||||
self.BASEPATH = v.path[:v.path.rfind('/')]
|
self.BASEPATH = v.path[:v.path.rfind('/')]
|
||||||
BaseBrowser.__init__(self, *args, **kwargs)
|
BaseBrowser.__init__(self, *args, **kwargs)
|
||||||
|
|
||||||
|
def absurl(self, rel):
|
||||||
|
return BaseBrowser.absurl(self, '%s/%s' % (self.BASEPATH, rel))
|
||||||
|
|
||||||
def home(self):
|
def home(self):
|
||||||
self.location(self.url)
|
self.location(self.url)
|
||||||
|
|
||||||
|
|
@ -140,3 +143,6 @@ class PhpBB(BaseBrowser):
|
||||||
post.parent = self.page.get_last_post_id()
|
post.parent = self.page.get_last_post_id()
|
||||||
|
|
||||||
return post
|
return post
|
||||||
|
|
||||||
|
def post_answer(self, topic, title, content):
|
||||||
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue