# URI에서 아바타 폴링 허용

**URL:** https://meta.discourse.org/t/allow-polling-avatar-from-uri/275943
**Category:** Feature
**Created:** [8월 20, 2023, 7:05오후 UTC](https://meta.discourse.org/t/allow-polling-avatar-from-uri/275943 "2023-08-20T19:05:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)
#### Post date: [8월 20, 2023, 7:05오후 UTC](https://meta.discourse.org/t/allow-polling-avatar-from-uri/275943/1 "2023-08-20T19:05:10Z")

</div>

이것은 이미 기업 환경에서 가능한 것 같습니다.

> [@SSO 및 외부 아바타](https://meta.discourse.org/t/sso-external-avatars/192392?u=rokejulianlockhart):
>
> When using SSO with sso overrides avatar: true, Discourse seems to download the avatar and always serve it locally instead of linking directly to the URL provided. Would it make more sense to allow avatars to serve directly from the avatar\_url provided? As is, for each avatar shown it hits Discourse backend somewhat needlessly. Perhaps this could be a SSO option? If the concern is that avatars may go missing, that could be handled with the image onerror event that fallback’s src to the locally…

하지만 SSO로 제한되어야 할 이유는 없다고 생각합니다.

* * *

각 서비스에 다른 이메일 주소를 사용할 때 발생하는 문제를 해결하는 훌륭한 방법입니다.

https://embed.reddit.com/r/Gravatar/comments/15ffy6v/gravatar_should_enforce_or_at_least_allow_regex/?embed=true&ref_source=embed&ref=share

---

<div class="post-metadata">

### Author: ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)
#### Post date: [9월 24, 2023, 12:07오후 UTC](https://meta.discourse.org/t/allow-polling-avatar-from-uri/275943/2 "2023-09-24T12:07:18Z")

</div>

Discourse에는 이미 해당 코드가 존재하는 것으로 보입니다.

> <https://gist.github.com/paydro/557c5d2fe75e466c3b20>

하지만 더 중요한 점은, 이것이 다른 곳에서도 구현되어 있으며 Gravatar와 Libravatar가 이를 잘 지원한다는 것입니다.

예를 들어, Libravatar의 지원 사항에 대해 제가 작성한 문서가 있습니다.

**[https://gitlab.com/-/snippets/2590066/raw/main/s0s2gl.txt.md](https://gitlab.com/-/snippets/2590066/raw/main/s0s2gl.txt.md)**

> 1. **API**
> 
> 2. **예시**

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [9월 24, 2023, 2:43오후 UTC](https://meta.discourse.org/t/allow-polling-avatar-from-uri/275943/3 "2023-09-24T14:43:51Z")

</div>

여기서는 추측이 조금 섞여 있지만, SSO와 `discourse connect overrides avatar` 설정, 또는 `external system avatars url` 설정에 URL을 추가하여 외부 아바타를 계속 서빙하려면 `download remote images to local` 사이트 설정을 비활성화해야 한다고 생각합니다. 따라서 원하시는 작업을 지금 수행할 수는 있지만, _모든_ 원격 이미지 다운로드를 방지하는 경우에만 가능합니다.

하지만 Discourse가 Gravatars를 통해 원하시는 기능을 제공하고 있다고 생각합니다. `download remote images to local` 사이트 설정을 활성화한 채로 `automatically download gravatars` 사이트 설정만 비활성화할 수 있습니다.

수정: 제가 현재 시스템 동작 방식을 올바르게 이해하고 있다면, 원하시는 기능은 새로운 사이트 설정인 `automatically download external system avatars`를 추가하는 것입니다.

해당 설정이 비활성화되어 있으면, Discourse가 아바타를 다운로드하지 않고 `external system avatars url`에서 서빙할 수 있습니다.
