# Reply reminder - Remind users to reply to new users topics with zero replies

**URL:** https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644
**Category:** Feature
**Tags:** pr-welcome
**Created:** [Abril 15, 2016, 11:45pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644 "2016-04-15T23:45:51Z")
**Posts on this page:** 16
**Page:** 3

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [Abril 25, 2018, 6:56pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/46 "2018-04-25T18:56:49Z")

</div>

First off, _thank you_ @cpradio for the original script.

We’re using this on a number of our sites and it’s hugely helpful in keeping our community engaged (especially welcoming new users).

We modified it, adding the ability to filter out certain categories that we don’t want the needs reply feature to show up on. Here’s the gist of what we’re currently using: [https://gist.github.com/alxpck/e092385c609b14459317b798dc55b07e](https://gist.github.com/alxpck/e092385c609b14459317b798dc55b07e)

But I’m stuck when it comes to using this in conjunction with tagging and the tag filters. **Is there a way to check for a tag filter and apply it within the script?**

It seems like the tag name from [the response object](https://gist.github.com/alxpck/3745ed556763a0262254aaff091a4587) might be the thing I need to build the right url. Anyone have insight here?

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [Abril 26, 2018, 5:30pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/47 "2018-04-26T17:30:17Z")

</div>

**Update: I got it working.** You need to include the **`args.tagId`** in the url.

I’ve [updated the gist](https://gist.github.com/alxpck/e092385c609b14459317b798dc55b07e) to include the needed code for anyone who is curious or whom it would benefit.

It came down to searching the Discourse repo for `Discourse.NavItem` and then reading [the code for the NavItem](https://github.com/discourse/discourse/blob/0a69f2bc7741a2da39233bc8dac3c419fdf22030/app/assets/javascripts/discourse/models/nav-item.js.es6#L130) and realizing the only two arguments I had access to were `category` and `args`. So I logged those to the console and found the `tagId`.

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [Abril 27, 2018, 2:28pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/48 "2018-04-27T14:28:30Z")

</div>

Ok, I’m stuck again. It seems that when a tag’s initial filter view are involved, the link isn’t sending an XMLHttp Request.

I strongly suspect there’s a bug in _my_ code (see the gist above) and since JavaScript is not my best language I’m probably missing something obvious.

To be honest, I’m not even sure I’m articulating this correctly. But here’s a screencast of what I’m seeing:

[https://dl.dropboxusercontent.com/s/wf1z2cbg2jn4crg/custom\_nav\_not\_working\_as\_expected\_with\_tags.mov?dl=1](https://dl.dropboxusercontent.com/s/wf1z2cbg2jn4crg/custom_nav_not_working_as_expected_with_tags.mov?dl=1)

In most cases when you click on the “Posts That Need Love” link, it highlights that menu option and there’s activity in the XHR tab of the dev tools. But when you’re in a tag’s filter view that click on the custom nav link (PTNL) it correctly constructs the url by appending `?max_posts=5` but it doesn’t log any activity in the XHR tab (so I’m guessing doesn’t send an XHR). If you click on a different nav link (like latest) it sends the XHR and after that clicking on the custom nav link both constructs the url correctly _and_ sends the XHR.

I can’t seem to debug why this is happening.

Anyone have a lead on why this might be happening?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Abril 30, 2018, 2:24am UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/49 "2018-04-30T02:24:54Z")

</div>

Oh this is a bit tricky, I can see what is happening, basically you want clicking on the nav item to wipe out any existing query and now it is keeping it… can you publish a theme-component here? then we can help whip it into shape with a PR

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [Maio 2, 2018, 7:33pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/50 "2018-05-02T19:33:24Z")

</div>

@sam That would be wonderful. Yes, please.

Took me a bit to wrap it up as a theme component, but here it is: [GitHub - akimboinc/discourse\_needsreply: Discourse theme component to add a custom menu item for topics that need more replies. Used for The Marketing Seminar. · GitHub](https://github.com/alxpck/discourse_needsreply)

Let me know how else I can help, and/or what else you need.

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [Maio 11, 2018, 3:00pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/51 "2018-05-11T15:00:11Z")

</div>

@sam Any luck on this front? Anything else I can do to help?

---

<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: [Maio 18, 2018, 3:24am UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/53 "2018-05-18T03:24:26Z")

</div>

The problem I’m seeing is that the tags route doesn’t respect the `max_posts` filter, for example, this doesn’t work: [https://meta.discourse.org/tags/pr-welcome?max\_posts=1](https://meta.discourse.org/tags/pr-welcome?max_posts=1).

A workaround for this is to use `tags` as a filter in the URL. Something like this might be close to what you’re looking for. It needs a bit of testing before I’d use it on a live site.

```js
<script type="text/discourse-plugin" version="0.8.18">
    if (I18n.translations.en) {
        I18n.translations.en.js.filters.unanswered = {title: "Unanswered", help: "Topics that have not be answered"};
    }

    api.modifyClass('component:navigation-item', {
        active: Ember.computed("contentFilterMode", "filterMode", function () {
            let contentFilterMode = this.get('content').get('filterMode');
            if (window.location.search && window.location.search.split('&')[0] === "?max_posts=1") {
                return contentFilterMode === "unanswered";
            } else {
                return this._super(contentFilterMode, this.get('filterMode'));
            }
        }),
    });

    api.modifyClass('controller:discovery/topics', {
        resetParams: function () {
            this.setProperties({max_posts: null});
            this.setProperties({tags: null});
            this._super();
        }
    });

    Discourse.ExternalNavItem = Discourse.NavItem.extend({
        href: function () {
            return this.get('href');
        }.property("href")
    });

    Discourse.NavItem.reopenClass({
        buildList: function (category, args) {
            let list = this._super(category, args),
                tag = args.tagId,
                unansweredHref;

            if (!category) {
                unansweredHref = tag ? '/latest/?max_posts=1&tags=' + tag : '/latest/?max_posts=1';
            }
            else if (!category.parentCategory) {
                unansweredHref = tag ? '/c/' + category.slug + '?max_posts=1&tags=' + tag : '/c/' + category.slug + '?max_posts=1';
            } else {
                unansweredHref = tag ? '/c/' + category.parentCategory.slug + '/' + category.slug + '?max_posts=1&tags=' + tag :
                    '/c/' + category.parentCategory.slug + '/' + category.slug + '?max_posts=1';
            }
            list.push(Discourse.ExternalNavItem.create({href: unansweredHref, name: 'unanswered'}));
            return list;
        }
    });
</script>

```

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [Maio 18, 2018, 2:24pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/54 "2018-05-18T14:24:27Z")

</div>

Thanks Simon!

I’ve been testing it this morning, and added back in a few of the features we need (like an exclude list). I also moved the query to a variable so we didn’t need to keep typing it. My code is below.

It doesn’t it solves the underlying problem for us.

One thing I noticed while testing is that the query doesn’t work on the base url (for us) because we have our site setup to only display categories on the home page.

Which means that when we try to append the tag filter to the base url it doesn’t return any results.

`https://domainname/?max_posts=5&tags=prompt-1`

vs. `https://meta.discourse.org/?max_posts=5&tag=pr-welcome`

Is there a way around this without either a) changing our homepage display or b) hardcoding the category?

- (hardcoding the category actually does work for us because we only care about tags in one category, I’m just trying to avoid it as a best practice)

Is there a reason the tags route doesn’t respect the max\_posts filter?

Thanks again, I really appreciate the help.

```plaintext
<!-- POSTS THAT NEED LOVE -->
<script type="text/discourse-plugin" version="0.8.18">
    if (I18n.translations.en) {
        I18n.translations.en.js.filters.needsreply = {title: "Posts That Need Love", help: "Topics that have not be answered"};
    }

    // CUSTOMIZE THESE VALUES
    // Set the search query
    let search_query = '?ascending=true&order=posts&max_posts=5';
    // Exclude certain categories from showing needs_reply
    let excludeList = ['process', 'resources', 'prompts', 'staff', 'unpublished-prompts'];

    // Add active class to Needs Reply button
    api.modifyClass('component:navigation-item', {
        active: Ember.computed("contentFilterMode", "filterMode", function () {
            let contentFilterMode = this.get('content').get('filterMode');
            if (window.location.search && window.location.search.split('&')[0] === search_query.split('&')[0]) {
                return contentFilterMode === "needsreply";
            } else {
                return this._super(contentFilterMode, this.get('filterMode'));
            }
        }),
    });

    // Remove max_posts filter and tags filter
    api.modifyClass('controller:discovery/topics', {
        resetParams: function () {
            this.setProperties({max_posts: null});
            this.setProperties({tags: null});
            this._super();
        }
    });

    Discourse.ExternalNavItem = Discourse.NavItem.extend({
        href: function () {
            return this.get('href');
        }.property("href")
    });

    Discourse.NavItem.reopenClass({
        buildList: function (category, args) {
            let list = this._super(category, args),
                tag = args.tagId,
                needsreplyHref;

            if (!category) { // does not have a category
                if (args.tagId) { // has a tag
                    needsreplyHref = '/c/student-work' + search_query + '&tags=' + tag; // build the href with the tag.
                } else {
                    return list; // return the list without creating the custom nav item because the query doesn't work on the base url of a Discourse install
                }
            }
            else if (excludeList.indexOf(category.slug) != -1) { // the category is in the exclude list, do nothing
                return list;
            }
            else if (!category.parentCategory) { // is not a sub-category
                needsreplyHref = tag ? '/c/' + category.slug + search_query + '&tags=' + tag : '/c/' + category.slug + search_query; // if there's a tag build the href with tags and the category, else fallback to the search query et al
            } else { // is a sub-category
                needsreplyHref = tag ? '/c/' + category.parentCategory.slug + '/' + category.slug + search_query + '&tags=' + tag :
                    '/c/' + category.parentCategory.slug + '/' + category.slug + search_query; // if there's a tag build the href with tags, sub-cateogry, and category, else fallback to search query et al
            }
            list.push(Discourse.ExternalNavItem.create({href: needsreplyHref, name: 'needsreply'}));
            return list;
        }
    });
</script>

```

edit: fixed the code to clear and add the active class based on the search query variable

---

<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: [Maio 18, 2018, 5:45pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/55 "2018-05-18T17:45:00Z")

</div>

> [@alxpck](#):
>
> One thing I noticed while testing is that the query doesn’t work on the base url (for us)

Right, I’ve edited the code to fix that. This:

```plaintext
unansweredHref = tag ? '?max_posts=1&tags=' + tag : '/?max_posts=1';

```

needed to be changed to:

```plaintext
unansweredHref = tag ? '/latest/?max_posts=1&tags=' + tag : '/latest/?max_posts=1';

```

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [Maio 18, 2018, 6:06pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/56 "2018-05-18T18:06:34Z")

</div>

Perfect! Thank you, Simon

---

<div class="post-metadata">

### Author: ![jerdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerdog/32/122843_2.png) [@jerdog](https://meta.discourse.org/u/jerdog)
#### Post date: [Julho 27, 2018, 3:18pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/57 "2018-07-27T15:18:17Z")

</div>

So a question here - first thanks @simon for this - it was recently requested by one of our members so I added it and it looks great! Only thing I am having a problem understanding, is when I click the `Unanswered` the nav CSS doesn’t adjust - it stays on `Latest`

![image](https://global.discourse-cdn.com/meta/optimized/3X/b/6/b6e665745e527484fdee6c6c577b5a995c722200_2_690x38.png)

Any help would be appreciated

---

<div class="post-metadata">

### Author: ![Grayden\_Shand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grayden_shand/32/166586_2.png) [@Grayden\_Shand](https://meta.discourse.org/u/Grayden_Shand)
#### Post date: [Julho 22, 2020, 2:58pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/58 "2020-07-22T14:58:36Z")

</div>

Usamos esse componente de tema há algum tempo, e hoje ele parou de funcionar.

Aqui está o código do componente (common, head\_tag.html)

```plaintext
<!-- PRECISA DE RESPOSTA -->
<script type="text/discourse-plugin" version="0.8.18">
    if (I18n.translations.en) {
        I18n.translations.en.js.filters.needsreply = {title: "Precisa de Resposta", help: "Tópicos sem resposta"};
    }

    // PERSONALIZE ESSES VALORES
    // Defina a consulta de pesquisa
    let search_query = '?ascending=false&max_posts=1';
    // Exclua certas categorias da exibição do item de menu "Precisa de Resposta"
    let excludeList = ['pitches', 'weekly-recap', 'staff'];

    // Adicione a classe ativa ao botão "Precisa de Resposta"
    api.modifyClass('component:navigation-item', {
        active: Ember.computed("contentFilterMode", "filterMode", function () {
            let contentFilterMode = this.get('content').get('filterMode');
            if (window.location.search && window.location.search.split('&')[0] === search_query.split('&')[0]) {
                return contentFilterMode === "needsreply";
            } else {
                return this._super(contentFilterMode, this.get('filterMode'));
            }
        }),
    });

    // Remova o filtro max_posts e o filtro de tags
    api.modifyClass('controller:discovery/topics', {
        resetParams: function () {
            this.setProperties({max_posts: null});
            this.setProperties({tags: null});
            this._super();
        }
    });

    Discourse.ExternalNavItem = Discourse.NavItem.extend({
        href: function () {
            return this.get('href');
        }.property("href")
    });

    Discourse.NavItem.reopenClass({
        buildList: function (category, args) {
            let list = this._super(category, args),
                tag = args.tagId,
                needsreplyHref;

            if (!category) { // não possui categoria
                needsreplyHref = tag ? '/latest/' + search_query + '&tags=' + tag : '/latest/' + search_query; // se houver uma tag, construa o href com a tag; caso contrário, retorne à visualização mais recente e à consulta de pesquisa
            }
            else if (excludeList.indexOf(category.slug) != -1) { // a categoria está na lista de exclusão, não faça nada
                return list; // retorne a lista sem criar o item de navegação personalizado
            }
            else if (!category.parentCategory) { // não é uma subcategoria
                needsreplyHref = tag ? '/c/' + category.slug + search_query + '&tags=' + tag : '/c/' + category.slug + search_query; // se houver uma tag, construa o href com tags e a categoria; caso contrário, retorne à consulta de pesquisa, etc.
            } else { // é uma subcategoria
                needsreplyHref = tag ? '/c/' + category.parentCategory.slug + '/' + category.slug + search_query + '&tags=' + tag :
                    '/c/' + category.parentCategory.slug + '/' + category.slug + search_query; // se houver uma tag, construa o href com tags, subcategoria e categoria; caso contrário, retorne à consulta de pesquisa, etc.
            }
            list.push(Discourse.ExternalNavItem.create({href: needsreplyHref, name: 'needsreply'}));
            return list;
        }
    });
</script>

```

Há um erro no console do JS:

 ![Screenshot 2020-07-22 08.08.24](https://global.discourse-cdn.com/meta/original/3X/a/9/a96015d3dc613528ddf631c2ff0aea2619009af6.png)

E, investigando um pouco mais, encontrei esta postagem falando sobre o Discourse.NavItem estar obsoleto:

> [@Custom nav items no longer showing after recent update](https://meta.discourse.org/t/custom-nav-items-no-longer-showing-after-recent-update/133838/2?u=grayden_shand):
>
> does not exist in core anymore. If you want to add items to the top nav menu, you can use this component

Alguma sugestão para reescrever isso sem a classe NavItem obsoleta?

---

<div class="post-metadata">

### Author: ![Grayden\_Shand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grayden_shand/32/166586_2.png) [@Grayden\_Shand](https://meta.discourse.org/u/Grayden_Shand)
#### Post date: [Julho 22, 2020, 3:41pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/59 "2020-07-22T15:41:41Z")

</div>

Consegui chegar quase lá analisando [Custom Top Navigation Links](https://meta.discourse.org/t/custom-top-navigation-links/87225).

```plaintext
<script type="text/discourse-plugin" version="0.8.18">
if (I18n.translations.en) {
    I18n.translations.en.js.filters.needsreply = {title: "Precisa de Resposta", help: "Tópicos sem resposta"};
}

// PERSONALIZE ESSES VALORES
// Defina a consulta de pesquisa
let search_query = '?max_posts=1';
// Exclua certas categorias de exibir o item de menu "Precisa de Resposta"
let excludeList = ['pitches', 'weekly-recap', 'staff'];

api.addNavigationBarItem({
name: "needsreply",
displayName:"Precisa de Resposta",
title: "Precisa de Resposta",
href: "/latest" + search_query
});

// Adiciona a classe ativa ao botão "Precisa de Resposta"
api.modifyClass('component:navigation-item', {
    active: Ember.computed("contentFilterMode", "filterMode", function () {
        let contentFilterMode = this.get('content').get('filterMode');
        console.log(window.location.search.split('&')[0], search_query.split('&')[0])
        if (window.location.search && window.location.search.split('&')[0] === search_query.split('&')[0]) {
            return contentFilterMode === "needsreply";
        } else {
            return this._super(contentFilterMode, this.get('filterMode'));
        }
    }),
});

// Remove o filtro max_posts e o filtro de tags
api.modifyClass('controller:discovery/topics', {
    resetParams: function () {
        this.setProperties({max_posts: null});
        this.setProperties({tags: null});
        this._super();
    }
});

</script>

```

A única parte que ainda não consegui entender é como acessar a categoria atual neste script.

No código original, o Discourse.NavItem permite acessar a categoria atual. Com base nesse código, alteramos dinamicamente o comportamento do link (ocultá-lo ou alterar o href para visualizar apenas postagens nesta categoria).

Alguém pode recomendar uma solução para injetar a categoria atual no script acima, para que eu possa personalizar o comportamento do link dependendo da categoria que o usuário está visualizando?

---

<div class="post-metadata">

### Author: ![Grayden\_Shand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grayden_shand/32/166586_2.png) [@Grayden\_Shand](https://meta.discourse.org/u/Grayden_Shand)
#### Post date: [Julho 22, 2020, 5:12pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/60 "2020-07-22T17:12:07Z")

</div>

Veja só no que eu acabei chegando… pode faltar um par de recursos. No geral, porém, o código ficou mais simples.

```plaintext
<script type="text/discourse-plugin" version="0.8.18">

// Define a consulta de busca
let search_query = '?max_posts=1';
// Especifique os identificadores de categoria que não devem ter esse recurso
let filtered_categories = ["pitches", "weekly-recap", "staff"]

var needs_reply = api.addNavigationBarItem({
    name: "needsreply",
    displayName:"Precisa de Resposta",
    title: "Precisa de Resposta",
    customFilter: (category, args, router) => { return !category || !filtered_categories.includes(category.slug)}, // excluir categorias
    customHref: (category, args, router) => { return search_query },
    init: (navItem, category) => { if (category) { navItem.set("category", category) } },
    forceActive: (category, args, router) => {return router.currentURL.includes(search_query);}
});

</script>

```

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [Julho 23, 2020, 4:00pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/61 "2020-07-23T16:00:33Z")

</div>

Talvez você queira conferir este componente, Grayden: ele faz o mesmo que o seu, é mais rápido e possui opções de interface para remover categorias.

> **[GitHub - discourse/discourse-unanswered-filter](https://github.com/discourse/discourse-unanswered-filter)**
>
> Contribute to discourse/discourse-unanswered-filter development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![Dev\_Work](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dev_work/32/124200_2.png) [@Dev\_Work](https://meta.discourse.org/u/Dev_Work)
#### Post date: [Agosto 6, 2020, 2:49pm UTC](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644/62 "2020-08-06T14:49:58Z")

</div>

O que precisa ser substituído para que funcione novamente?

```plaintext
Discourse.ExternalNavItem = Discourse.NavItem.extend(

```

Funcionou, obrigado!

 ![2020-08-06_220151](https://global.discourse-cdn.com/meta/original/3X/5/f/5ff35f72565630b7c3df4011d0f8c05edd46f8a5.png)

[Página anterior](https://meta.discourse.org/t/reply-reminder-remind-users-to-reply-to-new-users-topics-with-zero-replies/42644.md?page=2)
