Don't use shortened commit hashes to make URLs

This commit is contained in:
jesopo 2019-02-28 17:21:19 +00:00
parent b4fca127d1
commit 35ba165e0c

View file

@ -436,7 +436,7 @@ class Module(ModuleManager.BaseModule):
if len(data["commits"]) <= 3:
for commit in data["commits"]:
id = self._short_hash(commit["id"])
id = commit["id"]
message = commit["message"].split("\n")[0].strip()
author = utils.irc.bold(data["pusher"]["name"])
url = self._short_url(COMMIT_URL % (full_name, id))
@ -450,8 +450,8 @@ class Module(ModuleManager.BaseModule):
% (author, forced, branch, added, removed, modified,
message, url))
else:
first_id = self._short_hash(data["before"])
last_id = self._short_hash(data["commits"][-1]["id"])
first_id = data["before"]
last_id = data["commits"][-1]["id"]
pusher = utils.irc.bold(data["pusher"]["name"])
url = self._short_url(
COMMIT_RANGE_URL % (full_name, first_id, last_id))