mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 12:21:58 +00:00
actions: Remove redundant 'url_embed_preview_enabled' check.
We add URLs to the `links_for_embed set`, only when the `url_embed_preview_enabled` flag is turned on. So, it is sufficient to check if `links_for_embed` is not empty.
This commit is contained in:
committed by
Tim Abbott
parent
e8c57f2466
commit
3a110bd647
@@ -1608,7 +1608,7 @@ def update_message_backend(request: HttpRequest, user_profile: UserMessage,
|
||||
|
||||
# Include the number of messages changed in the logs
|
||||
request._log_data['extra'] = "[%s]" % (number_changed,)
|
||||
if links_for_embed and bugdown.url_embed_preview_enabled(message):
|
||||
if links_for_embed:
|
||||
event_data = {
|
||||
'message_id': message.id,
|
||||
'message_content': message.content,
|
||||
|
||||
Reference in New Issue
Block a user