mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
open graph: Use uploaded realm icon for open graph images.
This commit is contained in:
committed by
Tim Abbott
parent
9e8cfbea3b
commit
f3f172991b
@@ -133,6 +133,9 @@ def zulip_default_context(request: HttpRequest) -> Dict[str, Any]:
|
||||
'allow_search_engine_indexing': allow_search_engine_indexing,
|
||||
}
|
||||
|
||||
if realm is not None and realm.icon_source == realm.ICON_UPLOADED:
|
||||
context['OPEN_GRAPH_IMAGE'] = '%s%s' % (realm_uri, realm_icon)
|
||||
|
||||
return context
|
||||
|
||||
def login_context(request: HttpRequest) -> Dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user