mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-04-12 06:02:29 -04:00
Don'w show relationship status if there is any relationship between user
This commit is contained in:
parent
89759e7d49
commit
9a7d39c125
@ -93,12 +93,16 @@ class profileController(object):
|
|||||||
else: protected = _(u"No")
|
else: protected = _(u"No")
|
||||||
string = string+ _(u"Protected: %s\n") % (protected)
|
string = string+ _(u"Protected: %s\n") % (protected)
|
||||||
if hasattr(self, "friendship_status"):
|
if hasattr(self, "friendship_status"):
|
||||||
|
relation = False
|
||||||
friendship = "Relationship: "
|
friendship = "Relationship: "
|
||||||
if self.friendship_status["relationship"]["target"]["followed_by"]:
|
if self.friendship_status["relationship"]["target"]["followed_by"]:
|
||||||
friendship += _(u"You follow {0}. ").format(self.data["name"],)
|
friendship += _(u"You follow {0}. ").format(self.data["name"],)
|
||||||
|
relation = True
|
||||||
if self.friendship_status["relationship"]["target"]["following"]:
|
if self.friendship_status["relationship"]["target"]["following"]:
|
||||||
friendship += _(u"{0} is following you.").format(self.data["name"],)
|
friendship += _(u"{0} is following you.").format(self.data["name"],)
|
||||||
string = string+friendship+"\n"
|
relation = True
|
||||||
|
if relation == True:
|
||||||
|
string = string+friendship+"\n"
|
||||||
string = string+_(u"Followers: %s\n Friends: %s\n") % (self.data["followers_count"], self.data["friends_count"])
|
string = string+_(u"Followers: %s\n Friends: %s\n") % (self.data["followers_count"], self.data["friends_count"])
|
||||||
if self.data["verified"] == True: verified = _(u"Yes")
|
if self.data["verified"] == True: verified = _(u"Yes")
|
||||||
else: verified = _(u"No")
|
else: verified = _(u"No")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user