mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 09:03:57 +00:00
integrations: Remove hasattr check for stream_name on Integrations.
`stream_name` is always set on `Integration`. If it is not explicitly specified, it is set to the name of the integration.
This commit is contained in:
committed by
Tim Abbott
parent
4d8c988ef2
commit
f280b64caa
@@ -187,8 +187,7 @@ def integration_doc(request: HttpRequest, integration_name: str=REQ()) -> HttpRe
|
||||
|
||||
context['integration_name'] = integration.name
|
||||
context['integration_display_name'] = integration.display_name
|
||||
if hasattr(integration, 'stream_name'):
|
||||
context['recommended_stream_name'] = integration.stream_name
|
||||
context['recommended_stream_name'] = integration.stream_name
|
||||
if isinstance(integration, WebhookIntegration):
|
||||
context['integration_url'] = integration.url[3:]
|
||||
if isinstance(integration, HubotIntegration):
|
||||
|
||||
Reference in New Issue
Block a user