Browse Source

write full URLs into the channel viewer protocol data

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
fde03c5458
  1. 5
      pyweb/mumble/mmobjects.py

5
pyweb/mumble/mmobjects.py

@ -20,6 +20,7 @@ import datetime
import re import re
from time import time from time import time
from django.contrib.sites.models import Site
from django.utils.http import urlquote from django.utils.http import urlquote
from django.conf import settings from django.conf import settings
@ -293,7 +294,7 @@ class mmPlayer( object ):
del pldata["address"] del pldata["address"]
if self.mumbleuser and self.mumbleuser.hasTexture(): if self.mumbleuser and self.mumbleuser.hasTexture():
pldata['x-texture'] = self.mumbleuser.textureUrl
pldata['x-texture'] = "http://" + Site.objects.get_current().domain + self.mumbleuser.textureUrl
return pldata return pldata
@ -317,7 +318,7 @@ class mmPlayer( object ):
me.set( "address", "" ) me.set( "address", "" )
if self.mumbleuser and self.mumbleuser.hasTexture(): if self.mumbleuser and self.mumbleuser.hasTexture():
me.set( 'x-texture', self.mumbleuser.textureUrl )
me.set( 'x-texture', "http://" + Site.objects.get_current().domain + self.mumbleuser.textureUrl )
def asMvXml( self, parentnode ): def asMvXml( self, parentnode ):
""" Return an XML node for this player suitable for MumbleViewer-ng. """ """ Return an XML node for this player suitable for MumbleViewer-ng. """

Loading…
Cancel
Save