Skip to content

Commit 36578bf

Browse files
committed
Revert gyazo image embedding
1 parent 79c8c67 commit 36578bf

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@ however, insignificant breaking changes do not guarantee a major version bump, s
1919
- Added `content_type` to attachments stored in the database.
2020
- Introduced multiplatform Docker workflow for GitHub Actions.
2121
- Improved join/leave message for multiple servers.
22+
- Added `log_expiration` config to auto-delete old logs on a schedule.
2223

2324
### Changed
2425
- Changing a threads title or NSFW status immediately updates the status in the database.
2526

2627
### Removed
2728
- The logviewer plugin is no longer included locally.
2829
- Removed lottie sticker support and its dependencies due to unnecessary bulk.
30+
- The bot will no longer embed image from gyazo.
2931

3032
### Fixed
3133
- Persistent notes have been fixed after the previous discord.py update.

core/utils.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -149,18 +149,6 @@ def is_image_url(url: str, **kwargs) -> str:
149149
bool
150150
Whether the URL is a valid image URL.
151151
"""
152-
try:
153-
result = parse.urlparse(url)
154-
if result.netloc == "gyazo.com" and result.scheme in ["http", "https"]:
155-
# gyazo support
156-
url = re.sub(
157-
r"(https?://)((?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*(),]|%[0-9a-fA-F][0-9a-fA-F])+)",
158-
r"\1i.\2.png",
159-
url,
160-
)
161-
except ValueError:
162-
pass
163-
164152
return parse_image_url(url, **kwargs)
165153

166154

0 commit comments

Comments
 (0)