Remove custom code for customer14.invalid

(imported from commit efdc02e02c0dbdd29a09002897a294b5e820530f)
This commit is contained in:
Steve Howell
2014-02-14 11:15:50 -05:00
parent c33eeeee23
commit 0b0b9b9379

View File

@@ -223,12 +223,6 @@ def api_github_landing(request, user_profile, event=REQ,
else: else:
target_stream, subject, content = api_github_v1(user_profile, event, payload, branches, stream, **kwargs) target_stream, subject, content = api_github_v1(user_profile, event, payload, branches, stream, **kwargs)
# customer14.invalid has a stream per GitHub project and wants the topic to
# always be 'GitHub'.
# TODO: I'm not sure how to accomodate this hack into a configuration somewhere.
if domain == "customer14.invalid":
subject = "GitHub"
request.client = get_client("ZulipGitHubWebhook") request.client = get_client("ZulipGitHubWebhook")
return send_message_backend(request, user_profile, return send_message_backend(request, user_profile,
message_type_name="stream", message_type_name="stream",