diff --git a/.changeset/fifty-falcons-join.md b/.changeset/fifty-falcons-join.md deleted file mode 100644 index c21bb8e2b..000000000 --- a/.changeset/fifty-falcons-join.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostrudel": minor ---- - -Add share button to stream view diff --git a/.changeset/fresh-dolls-jam.md b/.changeset/fresh-dolls-jam.md deleted file mode 100644 index 8d2273c7f..000000000 --- a/.changeset/fresh-dolls-jam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostrudel": minor ---- - -Sort search results by follower count diff --git a/.changeset/olive-lizards-rush.md b/.changeset/olive-lizards-rush.md deleted file mode 100644 index 4eb3197ef..000000000 --- a/.changeset/olive-lizards-rush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostrudel": minor ---- - -Show embedded badges in stream cards and timelines diff --git a/.changeset/perfect-moons-help.md b/.changeset/perfect-moons-help.md deleted file mode 100644 index 625a995c4..000000000 --- a/.changeset/perfect-moons-help.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostrudel": minor ---- - -Clean up user reactions view diff --git a/.changeset/shy-trees-boil.md b/.changeset/shy-trees-boil.md deleted file mode 100644 index 10005709e..000000000 --- a/.changeset/shy-trees-boil.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostrudel": minor ---- - -Show list embeds in notes diff --git a/.changeset/slow-carrots-rush.md b/.changeset/slow-carrots-rush.md deleted file mode 100644 index 288dc8373..000000000 --- a/.changeset/slow-carrots-rush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostrudel": minor ---- - -Rebuild notifications view diff --git a/.changeset/stale-meals-report.md b/.changeset/stale-meals-report.md deleted file mode 100644 index bd60a9fc6..000000000 --- a/.changeset/stale-meals-report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostrudel": patch ---- - -Fix threads not loading when navigating directly to them diff --git a/.changeset/tidy-turkeys-allow.md b/.changeset/tidy-turkeys-allow.md deleted file mode 100644 index 70e71ac6e..000000000 --- a/.changeset/tidy-turkeys-allow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostrudel": minor ---- - -Add content warning switch when writing note diff --git a/.changeset/tough-turkeys-stare.md b/.changeset/tough-turkeys-stare.md deleted file mode 100644 index 266b56271..000000000 --- a/.changeset/tough-turkeys-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostrudel": minor ---- - -Add articles tab to user view diff --git a/.changeset/yellow-sheep-pay.md b/.changeset/yellow-sheep-pay.md deleted file mode 100644 index e9717775e..000000000 --- a/.changeset/yellow-sheep-pay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nostrudel": minor ---- - -Show stream goal zaps in stream chat diff --git a/CHANGELOG.md b/CHANGELOG.md index fc7c4c2f3..f58d97f0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # nostrudel +## 0.27.0 + +### Minor Changes + +- 94cd156: Add share button to stream view +- 03fb661: Sort search results by follower count +- cbb3aa5: Show embedded badges in stream cards and timelines +- 3d5d234: Clean up user reactions view +- 6b4fd8a: Show list embeds in notes +- b561568: Rebuild notifications view +- 409f219: Add content warning switch when writing note +- 076b89e: Add articles tab to user view +- 094a6fb: Show stream goal zaps in stream chat + +### Patch Changes + +- 81e86c9: Fix threads not loading when navigating directly to them + ## 0.26.0 ### Minor Changes diff --git a/package.json b/package.json index 77ac42aa9..019e2389d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nostrudel", - "version": "0.26.0", + "version": "0.27.0", "private": true, "license": "MIT", "scripts": { diff --git a/src/providers/notification-timeline.tsx b/src/providers/notification-timeline.tsx index 3f3462e1f..f1a938269 100644 --- a/src/providers/notification-timeline.tsx +++ b/src/providers/notification-timeline.tsx @@ -1,10 +1,10 @@ import { PropsWithChildren, createContext, useContext, useEffect, useMemo } from "react"; -import { truncatedId } from "../helpers/nostr/events"; +import { Kind } from "nostr-tools"; + import { useReadRelayUrls } from "../hooks/use-client-relays"; import { useCurrentAccount } from "../hooks/use-current-account"; import { TimelineLoader } from "../classes/timeline-loader"; import timelineCacheService from "../services/timeline-cache"; -import { Kind } from "nostr-tools"; type NotificationTimelineContextType = { timeline?: TimelineLoader; @@ -25,15 +25,15 @@ export default function NotificationTimelineProvider({ children }: PropsWithChil const timeline = useMemo(() => { return account?.pubkey - ? timelineCacheService.createTimeline(`${truncatedId(account?.pubkey ?? "anon")}-notification`) + ? timelineCacheService.createTimeline(`${account?.pubkey ?? "anon"}-notification`) : undefined; }, [account?.pubkey]); useEffect(() => { - if (timeline && account) { + if (timeline && account?.pubkey) { timeline.setQuery([{ "#p": [account?.pubkey], kinds: [Kind.Text, Kind.Repost, Kind.Reaction, Kind.Zap] }]); } - }, [account, timeline]); + }, [account?.pubkey, timeline]); useEffect(() => { timeline?.setRelays(readRelays); diff --git a/src/views/notifications/index.tsx b/src/views/notifications/index.tsx index 9b33d50ac..51bbfc36b 100644 --- a/src/views/notifications/index.tsx +++ b/src/views/notifications/index.tsx @@ -37,7 +37,7 @@ const Kind1Notification = forwardRef(({ e - {refs.replyId && } + );