Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Fix #829
Browse files Browse the repository at this point in the history
  • Loading branch information
cutls committed Jan 25, 2023
1 parent 3f8dc2e commit 1f42a81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/js/common/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import $ from 'jquery'
import dayjs from 'dayjs'
import relativeTime from 'dayjs/plugin/relativeTime'
import 'dayjs/locale/ja'
import 'dayjs/locale/en'
dayjs.extend(relativeTime)
dayjs.locale('ja')
dayjs.locale(globalThis.useLang === 'ja' || globalThis.useLang === 'ja-KS' ? 'ja' : 'en')

const timeUpdate = () => {
$('time.timeago').each(function (i, elem) {
Expand Down
2 changes: 1 addition & 1 deletion app/js/tl/announParse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function emojiReactionDef(target: string) {
}
const acctId = $('#post-acct-sel').val()?.toString()
const id = $('#reply').val()?.toString()
if (!id || !acctId) return Swal.fire('Error')
if (!id || !acctId) return
announReaction(id, acctId, false, emoji)
clear()
hide()
Expand Down

0 comments on commit 1f42a81

Please sign in to comment.