Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
return url instead of parse object
Browse files Browse the repository at this point in the history
  • Loading branch information
smn committed Apr 11, 2016
1 parent b82307b commit ffa3bb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vxapprouter/router.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- test-case-name: vxapprouter.tests.test_router -*-
import json
from urlparse import urlunparse

from twisted.internet.defer import inlineCallbacks

Expand Down Expand Up @@ -326,8 +327,8 @@ def make_first_reply(self, config, session, msg):
msg['helper_metadata']['messenger'] = {
'template_type': 'generic',
'title': config.menu_title,
'sub_title': config.sub_title,
'image_url': config.image_url,
'subtitle': config.sub_title,
'image_url': urlunparse(config.image_url),
'buttons': [{
'title': entry['label'],
'payload': str(index + 1)
Expand Down

0 comments on commit ffa3bb8

Please sign in to comment.