Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 2a43284

Browse files
committed
Remove direct access to the topicController
1 parent 225bb64 commit 2a43284

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import Component from "@glimmer/component";
2-
import { inject as controller } from "@ember/controller";
32
import { isGPTBot } from "../../lib/ai-bot-helper";
43

54
export default class AiPersonaFlair extends Component {
65
static shouldRender(args) {
76
return isGPTBot(args.post.user);
87
}
98

10-
@controller("topic") topicController;
11-
129
<template>
1310
<span class="persona-flair">
14-
{{this.topicController.model.ai_persona_name}}
11+
{{@outletArgs.post.topic.ai_persona_name}}
1512
</span>
1613
</template>
1714
}

0 commit comments

Comments
 (0)