chore: 🎨 format
This commit is contained in:
parent
3836e052bb
commit
f81baa373c
3 changed files with 13 additions and 14 deletions
|
@ -199,7 +199,8 @@ export const NoteRepository = db.getRepository(Note).extend({
|
||||||
host,
|
host,
|
||||||
);
|
);
|
||||||
|
|
||||||
const lang = detectLanguage_(`${note.cw ?? ''}\n${note.text ?? ''}`) ?? "unknown"
|
const lang =
|
||||||
|
detectLanguage_(`${note.cw ?? ""}\n${note.text ?? ""}`) ?? "unknown";
|
||||||
const reactionEmoji = await populateEmojis(reactionEmojiNames, host);
|
const reactionEmoji = await populateEmojis(reactionEmojiNames, host);
|
||||||
const packed: Packed<"Note"> = await awaitAll({
|
const packed: Packed<"Note"> = await awaitAll({
|
||||||
id: note.id,
|
id: note.id,
|
||||||
|
|
|
@ -12,11 +12,7 @@ export default async (actor: CacheableRemoteUser, activity: ILike) => {
|
||||||
|
|
||||||
await extractEmojis(activity.tag || [], actor.host).catch(() => null);
|
await extractEmojis(activity.tag || [], actor.host).catch(() => null);
|
||||||
|
|
||||||
return await create(
|
return await create(actor, note, activity.content || activity.name)
|
||||||
actor,
|
|
||||||
note,
|
|
||||||
activity.content || activity.name,
|
|
||||||
)
|
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
if (e.id === "51c42bb4-931a-456b-bff7-e5a8a70dd298") {
|
if (e.id === "51c42bb4-931a-456b-bff7-e5a8a70dd298") {
|
||||||
return "skip: already reacted";
|
return "skip: already reacted";
|
||||||
|
|
|
@ -24,14 +24,16 @@ export function openHelpMenu_(ev: MouseEvent) {
|
||||||
icon: "ph-lightbulb ph-bold ph-lg",
|
icon: "ph-lightbulb ph-bold ph-lg",
|
||||||
to: "/about-firefish",
|
to: "/about-firefish",
|
||||||
},
|
},
|
||||||
instance.tosUrl ? {
|
instance.tosUrl
|
||||||
|
? {
|
||||||
type: "button",
|
type: "button",
|
||||||
text: i18n.ts.tos,
|
text: i18n.ts.tos,
|
||||||
icon: "ph-scroll ph-bold ph-lg",
|
icon: "ph-scroll ph-bold ph-lg",
|
||||||
action: () => {
|
action: () => {
|
||||||
window.open(instance.tosUrl, "_blank");
|
window.open(instance.tosUrl, "_blank");
|
||||||
},
|
},
|
||||||
} : null,
|
}
|
||||||
|
: null,
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
text: i18n.ts.apps,
|
text: i18n.ts.apps,
|
||||||
|
|
Loading…
Reference in a new issue