mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 18:43:52 +00:00
mention: Allow linking archived streams.
Now that they are not completely inaccessible, there's no reason to disallow this.
This commit is contained in:
@@ -248,16 +248,6 @@ def get_all_streams(realm: Realm, include_archived_channels: bool = True) -> Que
|
||||
return Stream.objects.filter(realm=realm)
|
||||
|
||||
|
||||
def get_linkable_streams(realm_id: int) -> QuerySet[Stream]:
|
||||
"""
|
||||
This returns the streams that we are allowed to linkify using
|
||||
something like "#frontend" in our markup. For now the business
|
||||
rule is that you can link any stream in the realm that hasn't
|
||||
been deactivated (similar to how get_active_streams works).
|
||||
"""
|
||||
return Stream.objects.filter(realm_id=realm_id, deactivated=False)
|
||||
|
||||
|
||||
def get_stream(stream_name: str, realm: Realm) -> Stream:
|
||||
"""
|
||||
Callers that don't have a Realm object already available should use
|
||||
|
||||
Reference in New Issue
Block a user