# Top topics text missing

**URL:** https://meta.discourse.org/t/top-topics-text-missing/321363
**Category:** Bug
**Tags:** fixed
**Created:** [August 13, 2024, 12:06am UTC](https://meta.discourse.org/t/top-topics-text-missing/321363 "2024-08-13T00:06:13Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [August 13, 2024, 12:06am UTC](https://meta.discourse.org/t/top-topics-text-missing/321363/1 "2024-08-13T00:06:13Z")

</div>

Brave Linux, Meta theme. Unsure if this is intentional but it doesn’t look right

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

---

<div class="post-metadata">

### Author: ![bryce](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bryce/32/377822_2.png) [@bryce](https://meta.discourse.org/u/bryce)
#### Post date: [August 13, 2024, 12:53am UTC](https://meta.discourse.org/t/top-topics-text-missing/321363/2 "2024-08-13T00:53:39Z")

</div>

Hmm, I’m seeing the same thing on the default theme.

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/9/2/b92fdd4ddb405cd54b92a0f5e05e55d0117a17cc.png)

There’s an element for the name, but it’s empty!

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/8/d/68d75f0dd0ba45901c7aae3d77ab79e0ec1cbab2.png)

This doesn’t seem intentional to me, some I’m going to move it to #Contribute > Bug for now.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [August 13, 2024, 2:44am UTC](https://meta.discourse.org/t/top-topics-text-missing/321363/3 "2024-08-13T02:44:50Z")

</div>

Here is a quick look to help figure out the issue before bed. 😄

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/helpers/category-link.js#L159](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/helpers/category-link.js#L159)

`displayName` doesn’t exist. There is a `name` field instead.

The changes happen in this commit:

[https://github.com/discourse/discourse/commit/c197daa04c3114184cbd3ec2f1cfade1b5701793](https://github.com/discourse/discourse/commit/c197daa04c3114184cbd3ec2f1cfade1b5701793)

It seems to miss the getters in the context of user summary since the data is retrieved from `/summary.json`.

[https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/models/user.js#L1068-L1073](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/models/user.js#L1068-L1073)

Maybe mapping `top_categories` with `Category.create()` or a basic specific class would be okay.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [August 13, 2024, 5:20am UTC](https://meta.discourse.org/t/top-topics-text-missing/321363/4 "2024-08-13T05:20:25Z")

</div>

This makes me think of [Category names missing on group permissions page](https://meta.discourse.org/t/category-names-missing-on-group-permissions-page/320960/1). Both lost the text, so maybe it’s the same issue.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [August 13, 2024, 5:30am UTC](https://meta.discourse.org/t/top-topics-text-missing/321363/5 "2024-08-13T05:30:17Z")

</div>

Seems like it could possible be a result of then same issue but it’s in a different area. Not going to pretend like I know how Discourse works so I can’t input on that really

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [August 13, 2024, 8:16pm UTC](https://meta.discourse.org/t/top-topics-text-missing/321363/6 "2024-08-13T20:16:16Z")

</div>

@j.jaffeux this and [Category names missing on group permissions page](https://meta.discourse.org/t/category-names-missing-on-group-permissions-page/320960/1) look like regressions from [DEV: allows to alter category name/description (#28263) · discourse/discourse@c197daa · GitHub](https://github.com/discourse/discourse/commit/c197daa04c3114184cbd3ec2f1cfade1b5701793)

`categoryName` is returning an empty string, looks like these couple of places aren’t working with the new `displayName` getter?

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [August 13, 2024, 10:05pm UTC](https://meta.discourse.org/t/top-topics-text-missing/321363/7 "2024-08-13T22:05:30Z")

</div>

That should fix it:

[https://github.com/discourse/discourse/pull/28353](https://github.com/discourse/discourse/pull/28353)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [August 16, 2024, 10:05pm UTC](https://meta.discourse.org/t/top-topics-text-missing/321363/8 "2024-08-16T22:05:33Z")

</div>

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