refactor: yarn format

This commit is contained in:
kPherox 2023-02-18 10:10:18 +09:00
parent 188b599e85
commit b7b23dcfc7
No known key found for this signature in database
GPG Key ID: C04751C2BFA2F62D
2 changed files with 12 additions and 2 deletions

View File

@ -11,7 +11,15 @@ import Pin from "Icons/Pin";
import { parseZap } from "Element/Zap";
import ProfileImage from "Element/ProfileImage";
import Text from "Element/Text";
import { eventLink, getReactions, dedupeByPubkey, tagFilterOfTextRepost, hexToBech32, normalizeReaction, Reaction } from "Util";
import {
eventLink,
getReactions,
dedupeByPubkey,
tagFilterOfTextRepost,
hexToBech32,
normalizeReaction,
Reaction,
} from "Util";
import NoteFooter, { Translation } from "Element/NoteFooter";
import NoteTime from "Element/NoteTime";
import { useUserProfiles } from "Feed/ProfileFeed";

View File

@ -153,7 +153,9 @@ export default function useTimelineFeed(subject: TimelineSubject, options: Timel
.filter(a => a)
.map(a => unwrap(a)[1]);
const repostsByKind1 = main.store.notes
.filter(a => (a.kind === EventKind.Repost || a.kind === EventKind.TextNote) && a.tags.some(tagFilterOfTextRepost(a)))
.filter(
a => (a.kind === EventKind.Repost || a.kind === EventKind.TextNote) && a.tags.some(tagFilterOfTextRepost(a))
)
.map(a => a.tags.find(tagFilterOfTextRepost(a)))
.filter(a => a)
.map(a => unwrap(a)[1]);