Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

fix: get the wrong link after selecting an attachment #893

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

ruibaby
Copy link
Member

@ruibaby ruibaby commented Feb 27, 2023

What type of PR is this?

/kind bug

What this PR does / why we need it:

修复默认编辑器从附件库选择非图片、音视频的附件,以链接的形式插入之后得到的链接不正确的问题。

Which issue(s) this PR fixes:

Fixes halo-dev/halo#3408

Screenshots:

before:

image

after:

image

Special notes for your reviewer:

测试方式:

  1. 上传若干 zip 格式附件。
  2. 在编辑器中选择这些附件并插入,检查链接是否正确。

Does this PR introduce a user-facing change?

None

@f2c-ci-robot f2c-ci-robot bot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. labels Feb 27, 2023
@vercel
Copy link

vercel bot commented Feb 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
ui ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 27, 2023 at 8:23AM (UTC)

@LIlGG
Copy link
Member

LIlGG commented Feb 28, 2023

/lgtm

image

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Feb 28, 2023
Copy link
Member

@guqing guqing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Member

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Feb 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnNiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 28, 2023
@f2c-ci-robot f2c-ci-robot bot merged commit 3d718b5 into halo-dev:main Feb 28, 2023
@ruibaby ruibaby deleted the fix/wrong-attachment-link branch February 28, 2023 14:44
@ruibaby ruibaby modified the milestones: 2.3.x, 2.3.0 Mar 1, 2023
JohnNiang pushed a commit to JohnNiang/halo that referenced this pull request Mar 2, 2023
…le#893)

#### What type of PR is this?

/kind bug

#### What this PR does / why we need it:

修复默认编辑器从附件库选择非图片、音视频的附件,以链接的形式插入之后得到的链接不正确的问题。

#### Which issue(s) this PR fixes:

Fixes halo-dev#3408

#### Screenshots:

before:

<img width="995" alt="image" src="https://user-images.githubusercontent.com/21301288/221510856-76eaa125-c13e-472a-8073-7f9f58bb4bd2.png">

after:

<img width="924" alt="image" src="https://user-images.githubusercontent.com/21301288/221510749-c27fc083-3978-4139-959a-426499016d12.png">


#### Special notes for your reviewer:

测试方式:

1. 上传若干 zip 格式附件。
2. 在编辑器中选择这些附件并插入,检查链接是否正确。

#### Does this PR introduce a user-facing change?

```release-note
None
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

在编辑文章页面上传附件时,zip 文件无法正确生成访问链接
4 participants