Merge pull request #255 from woorst/urlview_submission

urlview command works on submission as well as comments
This commit is contained in:
Michael Lazar
2016-07-22 16:59:39 -07:00
committed by GitHub

View File

@@ -150,7 +150,7 @@ class SubmissionPage(Page):
@SubmissionController.register(Command('SUBMISSION_OPEN_IN_URLVIEWER'))
def comment_urlview(self):
data = self.content.get(self.nav.absolute_index)
comment = data.get('body', '')
comment = data.get('body') or data.get('text') or data.get('url_full')
if comment:
self.term.open_urlview(comment)
else: