# 커스텀 "게시물 버튼"이 삭제된 상태의 게시물에서 오류 발생

**URL:** https://meta.discourse.org/t/custom-post-button-generates-error-when-post-is-in-deleted-state/412158
**Category:** Bug
**Tags:** fixed, workflows
**Created:** [9월 10, 2026, 9:29오후 UTC](https://meta.discourse.org/t/custom-post-button-generates-error-when-post-is-in-deleted-state/412158 "2026-09-10T21:29:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![per1234](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/per1234/32/569645_2.png) [@per1234](https://meta.discourse.org/u/per1234)
#### Post date: [9월 10, 2026, 9:29오후 UTC](https://meta.discourse.org/t/custom-post-button-generates-error-when-post-is-in-deleted-state/412158/1 "2026-09-10T21:29:18Z")

</div>

### 우선순위/심각도:

중간

### 플랫폼:

#### 운영 체제

Windows 11

#### 브라우저

Google Chrome 152.0.7977.83

#### Discourse

`ed00bce10a9e2ad5f12f6ae6b3a229bb62cf2d2b`

### 설명:

Discourse Workflows 코어 플러그인은 "게시물 버튼"을 통해 워크플로 실행을 트리거할 수 있는 기능을 지원합니다. 이는 게시물 아래에 표시되는 행에 추가되는 아이콘입니다.

게시물이 "삭제"된 경우에도 스태프는 여전히 해당 게시물에 접근할 수 있습니다. 이러한 게시물에는 게시물 버튼이 여전히 표시되며, 특정 작업을 수행하는 데 유용합니다.

🐛 게시물이 삭제된 상태일 때, 워크플로에 의해 추가된 사용자 정의 게시물 버튼을 클릭하면 오류 메시지만 포함된 다이얼로그가 표시됩니다:

> **오류가 발생했습니다: 요청한 URL 또는 리소스를 찾을 수 없습니다.**

### 재현 단계:

1. 다음 링크를 클릭하여 간단한 데모용 워크플로 가져오기 소스를 다운로드합니다:  
[workflow-nodes-2026-09-10.json](https://meta.discourse.org/uploads/short-url/z0HmF5i2ulWCzulrxUVrB9V0MOU.json) (901 바이트)
2. 관리자 권한이 있는 포럼에서 워크플로 플러그인 관리 페이지(`/admin/plugins/discourse-workflows/workflows`)로 이동합니다.
3. “ **+ 새 워크플로** ” 버튼을 클릭합니다.
4. 워크플로 캔버스 오른쪽 상단 근처에 있는 **⋮** 버튼을 클릭합니다.  
메뉴가 열립니다.
5. 메뉴에서 " **가져오기**"를 선택합니다.  
“ **열기** ” 다이얼로그가 열립니다.
6. 다이얼로그에서 다운로드한 파일을 선택합니다.
7. 다이얼로그의 “ **열기** ” 버튼을 클릭합니다.  
워크플로에 “게시물 버튼” 트리거 단계가 입력됩니다.
8. 워크플로 캔버스 상단의 “ **게시** ” 버튼을 클릭합니다.
9. 임의의 게시물을 삭제합니다.
10. 삭제된 게시물 하단의 불만스러운 얼굴 아이콘을 클릭합니다.

🐛 오류 메시지가 포함된 다이얼로그가 나타납니다. 워크플로는 트리거되지 않습니다.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [9월 14, 2026, 10:24오전 UTC](https://meta.discourse.org/t/custom-post-button-generates-error-when-post-is-in-deleted-state/412158/3 "2026-09-14T10:24:48Z")

</div>

@per1234 님, 보고해 주셔서 감사합니다 👍 다음 링크를 통해 수정될 예정입니다.

> <https://github.com/discourse/discourse/pull/43625>
>
> Previously, the topic admin menu still showed workflow buttons on deleted topics…, but clicking one returned a 404 because the trigger service looked the topic up through its default scope, which hides trashed topics. This is the same problem post buttons had on deleted posts.
> 
> This change looks the topic up including deleted records. The trigger is limited to admins, who can already see deleted topics, so no additional visibility check is needed.
> 
> Stacked on #43624.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [9월 16, 2026, 10:45오전 UTC](https://meta.discourse.org/t/custom-post-button-generates-error-when-post-is-in-deleted-state/412158/5 "2026-09-16T10:45:33Z")

</div>


