# 공유할 때 링크 아이콘만 대체

**URL:** https://meta.discourse.org/t/substitute-link-icon-only-for-sharing/207436
**Category:** UX
**Created:** [10월 28, 2021, 6:29오후 UTC](https://meta.discourse.org/t/substitute-link-icon-only-for-sharing/207436 "2021-10-28T18:29:07Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [10월 29, 2021, 6:02오후 UTC](https://meta.discourse.org/t/substitute-link-icon-only-for-sharing/207436/14 "2021-10-29T18:02:49Z")

</div>

네, 아래 커밋이 `tests-passed` 상태가 되는 즉시 원하는 작업을 수행할 수 있습니다:

> <https://github.com/discourse/discourse/commit/f6a3c22a898069e6e15a4e220fc12b91eba2e15e>

(`tests-passed` 상태가 되기까지 약 1시간 정도 걸릴 수 있습니다.)

그래서 게시글 및 토픽 버튼의 공유 아이콘에 새로운 ID를 추가했습니다. 이제 API의 replaceIcon 호출에서 다음과 같이 이를 분리하여 사용할 수 있습니다:

```javascript
api.replaceIcon('d-post-share', 'share-square');
api.replaceIcon('d-topic-share', 'share-square');

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/e/ce14f19a375ea92c0617d3b0ad6220d51e2aecda.png)

---

_[View the full topic](https://meta.discourse.org/t/substitute-link-icon-only-for-sharing/207436)._
