From 14a5bf682a1582f099beb259d8bfcc5b0d73689b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Jul 2025 17:39:04 +0000 Subject: [PATCH 1/3] Bump pillow from 11.2.1 to 11.3.0 --- updated-dependencies: - dependency-name: pillow dependency-version: 11.3.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index e86b227..ce7e738 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,7 +30,7 @@ multidict==6.2.0 mysqlclient==2.2.7 openai==0.28.1 packaging==24.2 -pillow==11.2.1 +pillow==11.3.0 propcache==0.3.1 pycparser==2.22 Pygments==2.19.1 From 677b40167572130b0a3ac03a1a0588d530665ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=94=E5=90=AC=E9=A3=8E=E5=90=9F?= Date: Wed, 2 Jul 2025 23:35:23 +0800 Subject: [PATCH 2/3] Update blog/views.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- blog/views.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/blog/views.py b/blog/views.py index 8bb5264..7e082a6 100644 --- a/blog/views.py +++ b/blog/views.py @@ -161,13 +161,8 @@ class ArticleDetailView(DetailView): article = self.object # Action Hook, 通知插件"文章详情已获取" hooks.run_action('after_article_body_get', article=article, request=self.request) - # # Filter Hook, 允许插件修改文章正文 + # Filter Hook, 允许插件修改文章正文 article.body = hooks.apply_filters(ARTICLE_CONTENT_HOOK_NAME, article.body, article=article, request=self.request) - # # toc = markdown.toc - # md = markdown.Markdown(extensions=[ - # 'markdown.extensions.extra', - # ]) - # article.body = md.convert(article.body) return context From a2b38a5f2ddefa77bd2d89e6b266ced36d474bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=94=E5=90=AC=E9=A3=8E=E5=90=9F?= Date: Wed, 2 Jul 2025 23:35:52 +0800 Subject: [PATCH 3/3] Update blog/views.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- blog/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/blog/views.py b/blog/views.py index 7e082a6..fc5e346 100644 --- a/blog/views.py +++ b/blog/views.py @@ -2,7 +2,6 @@ import logging import os import uuid -import markdown from django.conf import settings from django.core.paginator import Paginator from django.http import HttpResponse, HttpResponseForbidden