diff --git a/app/Actions/RSS/Generate.php b/app/Actions/RSS/Generate.php index f4c764c0fb8..55143ed5cff 100644 --- a/app/Actions/RSS/Generate.php +++ b/app/Actions/RSS/Generate.php @@ -20,6 +20,7 @@ use App\Services\UrlGenerator; use Carbon\Exceptions\InvalidFormatException; use Carbon\Exceptions\UnitException; +use GrahamCampbell\Markdown\Facades\Markdown; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Support\Carbon; use Illuminate\Support\Collection; @@ -54,7 +55,7 @@ private function toFeedItem(object $data): FeedItem $feed_item = [ 'id' => $page_link, 'title' => $data->title, - 'summary' => $data->description ?? '', + 'summary' => Markdown::convert($data->description ?? '')->getContent(), 'updated' => $this->asDateTime($data->updated_at), 'link' => $page_link, 'enclosure' => $this->url_generator->pathToUrl($data->short_path, $data->storage_disk, SizeVariantType::ORIGINAL), diff --git a/database/migrations/2026_03_23_162424_bump_version070503.php b/database/migrations/2026_03_23_162424_bump_version070503.php new file mode 100644 index 00000000000..b819fb7a45f --- /dev/null +++ b/database/migrations/2026_03_23_162424_bump_version070503.php @@ -0,0 +1,52 @@ +output = new ConsoleOutput(); + $this->msg_section = $this->output->section(); + } + + /** + * Run the migrations. + * + * @return void + */ + public function up(): void + { + DB::table('configs')->where('key', 'version')->update(['value' => '070503']); + try { + Artisan::call('cache:clear'); + } catch (\Throwable $e) { + $this->msg_section->writeln('Warning: Failed to clear cache for version 7.5.3'); + + return; + } + $this->msg_section->writeln('Info: Cleared cache for version 7.5.3'); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down(): void + { + DB::table('configs')->where('key', 'version')->update(['value' => '070502']); + } +}; diff --git a/resources/views/vendor/feed/json.blade.php b/resources/views/vendor/feed/json.blade.php index 82b98f6b125..7fbac09b997 100644 --- a/resources/views/vendor/feed/json.blade.php +++ b/resources/views/vendor/feed/json.blade.php @@ -28,7 +28,7 @@ } ], @endif - "tags": [ {!! implode(',', array_map(fn($c) => '"'.$c.'"', $item->category)) !!} ] + "tags": @json($item->category) }@if($item !== $items->last()), @endif @endforeach diff --git a/version.md b/version.md index 26fb97caff7..02533ecd908 100644 --- a/version.md +++ b/version.md @@ -1 +1 @@ -7.5.2 \ No newline at end of file +7.5.3 \ No newline at end of file