Improve the logic a little bit.

pull/1/head
Simon Quigley 6 years ago
parent b72c57bb89
commit 977cec1c37

@ -121,7 +121,7 @@ def main():
fulltaskname = phab.phid.query(phids=[data["object"]["phid"]])[data["object"]["phid"]]["fullName"]
link = "\x032" + phab.phid.query(phids=[data["object"]["phid"]])[data["object"]["phid"]]["uri"] + "#" + str(commentid) + "\x03"
message = "\x033[\x03\x0313"+ fulltaskname +"\x03\x033]\x03 \x0315" + str(who) + "\x03 "
if comment == True and edited == False:
if comment == True:
message = message + "commented on the task: " + link
elif edited == True:
message = message + "edited a message on the task: " + link

Loading…
Cancel
Save