From 112011ce173a07b70dbb45ed05268b8bc874eeba Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Fri, 21 Mar 2025 15:18:36 +0300 Subject: [PATCH] Remove commented-out code for Telegram URL handling in PostParser to clean up the implementation --- post_parser.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/post_parser.py b/post_parser.py index 12e1a8b..2cee8cb 100644 --- a/post_parser.py +++ b/post_parser.py @@ -486,11 +486,11 @@ class PostParser: html_parts.append(f'
{display_url}
') elif url: html_parts.append(f'
{url}
') - else: - # Show Telegram URL (more subtle than button) - display_url = getattr(webpage, "display_url", None) - if display_url: - html_parts.append(f'
{display_url}
') + #else: + # # Show Telegram URL (more subtle than button) + # display_url = getattr(webpage, "display_url", None) + # if display_url: + # html_parts.append(f'
{display_url}
') # Add photo if available if photo := getattr(webpage, "photo", None):