Files
gsfdc/demo-dify/dify/web/utils/visible-author.ts
T
wuzilongandCursor c2cb845a32 feat(dify): 把本地控制台的中文与去外链改动入库
这些界面改动和专家服务草稿停在工作区,没有随上一笔主分支提交进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-23 09:44:09 +08:00

9 lines
379 B
TypeScript

// Official plugin metadata still uses the upstream product name as the author.
// Local deployments hide that label and keep other authors visible.
export function visibleAuthorName(value?: string | null): string {
const text = value?.trim() ?? ''
if (!text) return ''
if (text.toLowerCase() === 'dify' || text.toLowerCase().startsWith('dify ')) return ''
return text
}