mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-16 11:36:23 +08:00
14 lines
348 B
Text
14 lines
348 B
Text
import Component from "@glimmer/component";
|
|
import { isGPTBot } from "../../lib/ai-bot-helper";
|
|
|
|
export default class AiPersonaFlair extends Component {
|
|
static shouldRender(args) {
|
|
return isGPTBot(args.post.user);
|
|
}
|
|
|
|
<template>
|
|
<span class="persona-flair">
|
|
{{@outletArgs.post.topic.ai_persona_name}}
|
|
</span>
|
|
</template>
|
|
}
|