Skip to content

Attachments In Review Comment Break With Edit #24195

Closed
@kdumontnu

Description

@kdumontnu

Description

To Reproduce

  • Submit a review on design review with image attachments (I've only verified paste from clipboard)
    • images will automatically be inlined in markdown
  • Edit the comment and delete one of the images
  • All of the image/attachment links break

It seems as if all of the attachments are deleted when the review is edited.

Related to: #23290 and #24196

Gitea Version

1.18 and 1.20 (try.gitea)

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Paste some images (note: attachments aren't indicated)
Screenshot 2023-04-18 at 2 42 28 PM
Edit the review comment
Screenshot 2023-04-18 at 2 43 24 PM
Screenshot 2023-04-18 at 2 43 39 PM
Screenshot 2023-04-18 at 2 43 52 PM
All attachments are broken
Screenshot 2023-04-18 at 2 44 05 PM

Git Version

No response

Operating System

No response

How are you running Gitea?

https://try.gitea.io/kdumontnu/test/pulls/2

Database

None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions