We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25e0881 + fc2dfab commit 606d62aCopy full SHA for 606d62a
js/src/forum/index.js
@@ -21,7 +21,13 @@ app.initializers.add('dem13n-topic-starter-label', () => {
21
22
const labelText = (routeName === 'blogArticle') ? app.translator.trans('dem13n.forum.blog_article_author') : app.translator.trans('dem13n.forum.topic_starter');
23
const post = this.attrs.post;
24
+
25
+ if (!post.user().id) return;
26
27
const postAuthor = post.user().id();
28
29
+ if (!post.discussion().user().id) return;
30
31
const discussionAuthor = post.discussion().user().id();
32
33
if (!discussionAuthor && !postAuthor) {
0 commit comments