# ‘추천 사용자’ 기능은 무엇인가요?

**URL:** https://meta.discourse.org/t/whats-the-featured-users-feature/219549
**Category:** Support
**Created:** [2월 28, 2022, 8:01오전 UTC](https://meta.discourse.org/t/whats-the-featured-users-feature/219549 "2022-02-28T08:01:34Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [2월 28, 2022, 8:01오전 UTC](https://meta.discourse.org/t/whats-the-featured-users-feature/219549/1 "2022-02-28T08:01:34Z")

</div>

안녕하세요  
[Data Explorer](https://meta.discourse.org/t/32566?silent=true)의 topics 테이블에서 "Featured\_user…"라는 이름의 여러 열을 볼 수 있습니다. Discourse에서 이 열이 무엇이며 어떻게 작동하는지에 대한 설명이 거의 언급되지 않거나(혹은 제가 출처를 찾지 못했거나) 하는 것 같습니다.

설명이나 참고 자료를 주시면 감사하겠습니다! 감사합니다! (:

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2월 28, 2022, 8:40오전 UTC](https://meta.discourse.org/t/whats-the-featured-users-feature/219549/2 "2022-02-28T08:40:37Z")

</div>

제가 말씀드린 것은 토픽 목록에서 토픽 작성자 옆에 표시되는 사용자/아바타(그리고 `last_post_user_id`)를 의미합니다:

 ![featured users](https://global.discourse-cdn.com/meta/original/3X/0/a/0af99978368f70943441b73721db94d8fb33e606.png)

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [2월 28, 2022, 9:32오전 UTC](https://meta.discourse.org/t/whats-the-featured-users-feature/219549/3 "2022-02-28T09:32:38Z")

</div>

@JammyDodger님 감사합니다! [Data Explorer](https://meta.discourse.org/t/32566?silent=true) 플러그인으로 테스트해 보면, UI에서는 예를 들어 네 명의 추천 사용자를 표시하지만,

```plaintext
SELECT id, title, featured_user1_id, featured_user2_id, featured_user3_id,
featured_user4_id FROM topics

```

쿼리를 실행하면 네 번째, 세 번째, 두 번째 또는 심지어 모든 값이 NULL로 나타나는 경우가 있습니다.

예를 들어,

 ![FeaturedUsers](https://global.discourse-cdn.com/meta/original/3X/c/b/cbff70b839da79d33a63f4207dc6677390d99171.png)  
위 이미지는 상위 목록에 약 세 명의 사용자가 표시되어 있지만, 쿼리를 실행하면 한 명만 추천 사용자로 나타납니다:  
 ![dataExplorerResult](https://global.discourse-cdn.com/meta/original/3X/1/5/150789fb2fac94a30e3944cea820795d857f00d5.png)

감사합니다! 🤩

– 같은 id, 같은 토픽…

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2월 28, 2022, 9:43오전 UTC](https://meta.discourse.org/t/whats-the-featured-users-feature/219549/4 "2022-02-28T09:43:50Z")

</div>

첫 번째 아바타는 토픽 소유자(`topic.user_id`)가 되고, 두 번째는 아마도 `featured_user1`, 세 번째는 `last_post_user_id`가 될 것입니다.

토픽 목록에 표시되는 내용과 일치하는지 확인해 보려면 다음을 시도해 볼 수 있습니다:

```plaintext
-- [params]
-- integer :topic_id

SELECT t.id as topic_id, 
t.user_id as topic_owner_user_id, 
t.featured_user1_id as F1_user_id, 
t.featured_user2_id as F2_user_id, 
t.featured_user3_id as F3_user_id, 
t.featured_user4_id as F4_user_id, 
t.last_post_user_id
FROM topics t
WHERE t.id = :topic_id

```

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [2월 28, 2022, 9:51오전 UTC](https://meta.discourse.org/t/whats-the-featured-users-feature/219549/5 "2022-02-28T09:51:02Z")

</div>

네, 많이 감사드립니다. 처음부터 제대로 설명하지 못해서 죄송합니다. 위에서 드린 예시에는 세 명의 사용자가 표시되는데(네, 첫 번째 사용자는 소유자입니다), 쿼리 결과에는 featured\_user로 한 명만 표시되고 있습니다. 그래서 제 질문은, UI에서 보이는 다른 사용자는 왜 쿼리에서 선택되지 않고 한 명만 표시되는 건가요? (주제 소유자는 제외하고요. 그 부분은 이해하고 있습니다)

UI에서처럼 featured\_user 두 명 + 소유자가 표시되길 기대합니다. (:

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2월 28, 2022, 10:09오전 UTC](https://meta.discourse.org/t/whats-the-featured-users-feature/219549/6 "2022-02-28T10:09:18Z")

</div>

글을 진행할수록 사용자가 `last_post_user_id`를 기준으로 이동합니다:

첫 번째 답변:

![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/3X/f/9/f94f5391068f0aaa8ff618b03ecbbb58d6566740_2_517x36.png)

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/7/571b78b4ec23d1af1f4e6a2a03510792968346ef.png)

두 번째 답변:

![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/3X/5/1/519e8cff9f71e6db081f45bf08bdb8974ecce700_2_517x40.png)

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

세 번째 답변:

![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/3X/9/6/9637ca9e2bc7aa463263a8310d076861c8161eba_2_516x36.png)

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

---

<div class="post-metadata">

### Author: ![gassim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gassim/32/220910_2.png) [@gassim](https://meta.discourse.org/u/gassim)
#### Post date: [2월 28, 2022, 10:22오전 UTC](https://meta.discourse.org/t/whats-the-featured-users-feature/219549/7 "2022-02-28T10:22:07Z")

</div>

네, 정말 감사합니다! 제가 이해하고 싶었던 바로 그 부분이었습니다! 😄👍

---

<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: [3월 30, 2022, 10:23오전 UTC](https://meta.discourse.org/t/whats-the-featured-users-feature/219549/8 "2022-03-30T10:23:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
