Skip to content

Commit

Permalink
Merge pull request #1340 from h3poteto/fix/firefish-emoji
Browse files Browse the repository at this point in the history
Fix custom emoji reaction for Firefish
  • Loading branch information
h3poteto authored Feb 8, 2024
2 parents d7b21c8 + 959123b commit 26451cf
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@tauri-apps/api": "1.5.3",
"dayjs": "^1.11.10",
"emoji-mart": "^5.5.2",
"megalodon": "9.2.0",
"megalodon": "9.2.1",
"next": "^14.1.0",
"parse-link-header": "^2.0.0",
"react": "^18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sqlx = { version = "0.7.3", features = ["runtime-tokio-rustls", "sqlite", "migr
tokio = { version = "1.35", features = ["full"] }
futures = "0.3"
directories = "5.0"
megalodon = "0.12.0"
megalodon = "0.12.1"
open = "5.0"
log = "0.4"
reqwest = { version = "0.11", features = ["json", "multipart", "stream"] }
Expand Down
2 changes: 1 addition & 1 deletion src/components/timelines/status/Actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const Actions: React.FC<Props> = props => {
}

const onEmojiSelect = async emoji => {
let name = emoji.shortcodes
let name = emoji.name
if (emoji.native) {
name = emoji.native
}
Expand Down
10 changes: 9 additions & 1 deletion src/components/timelines/status/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,15 @@ const Status: React.FC<Props> = props => {
)}
{status.emoji_reactions &&
status.emoji_reactions.map(e => (
<Button appearance="subtle" size="sm" key={e.name} onClick={() => emojiClicked(e)} active={e.me}>
<Button
appearance="subtle"
size="sm"
key={e.name}
onClick={() => emojiClicked(e)}
active={e.me}
disabled={e.name.includes('@')}
title={e.name}
>
{e.url ? (
<>
<img src={e.url} style={{ height: '20px' }} /> <span style={{ marginLeft: '0.2em' }}>{e.count}</span>
Expand Down

0 comments on commit 26451cf

Please sign in to comment.