Skip to content

Commit

Permalink
chore: 表情的发送者名称按钮改成 url 类型
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Jul 24, 2024
1 parent 448d259 commit 8e812d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/src/api/richHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export default new Elysia()
const location = [profile.country, profile.province, profile.city].join(' ').trim();
const birthday = (profile.birthday || []).some(it => it) && profile.birthday.join('/');

// language=CSS
return <html lang="zh">
<head>
<meta charset="UTF-8"/>
Expand All @@ -63,6 +62,7 @@ export default new Elysia()
}
<meta property="og:title" content={memberInfo.card || memberInfo.nickname}/>
<title>群成员:{memberInfo.card || memberInfo.nickname}</title>
{/* language=CSS */}
<style>{`
html, body {
padding: 0;
Expand Down
7 changes: 6 additions & 1 deletion main/src/services/ForwardService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ export default class ForwardService {
const useSticker = (file: FileLike) => {
files.push(file);
if (!event.dm) {
buttons.push(Button.inline(`${sender}:`));
if ((pair.flags | this.instance.flags) & flags.RICH_HEADER && env.WEB_ENDPOINT) {
buttons.push(Button.url(`${sender}:`, helper.generateRichHeaderUrl(pair.apiKey, event.from.id, messageHeader)));
}
else {
buttons.push(Button.inline(`${sender}:`));
}
messageHeader = '';
}
};
Expand Down

0 comments on commit 8e812d5

Please sign in to comment.