Skip to content

Commit c9b2f49

Browse files
committed
fix: use full PostFragment in Notification type
1 parent e99ea2b commit c9b2f49

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

packages/graphql/src/notifications.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import {
55
Erc20AmountFragment,
66
GroupFragment,
77
PaginatedResultInfoFragment,
8+
PostFragment,
89
PostReactionFragment,
910
RawKeyValueFragment,
10-
ReferencedPostFragment,
1111
UnknownAccountActionFragment,
1212
} from './fragments';
1313
import { type RequestOf, graphql } from './graphql';
@@ -65,10 +65,10 @@ export const ReactionNotificationFragment = graphql(
6565
...NotificationAccountPostReaction
6666
}
6767
post {
68-
...ReferencedPost
68+
...Post
6969
}
7070
}`,
71-
[NotificationAccountPostReactionFragment, ReferencedPostFragment],
71+
[NotificationAccountPostReactionFragment, PostFragment],
7272
);
7373
export type ReactionNotification = FragmentOf<typeof ReactionNotificationFragment>;
7474

@@ -77,10 +77,10 @@ const CommentNotificationFragment = graphql(
7777
__typename
7878
id
7979
comment {
80-
...ReferencedPost
80+
...Post
8181
}
8282
}`,
83-
[ReferencedPostFragment],
83+
[PostFragment],
8484
);
8585
export type CommentNotification = FragmentOf<typeof CommentNotificationFragment>;
8686

@@ -105,10 +105,10 @@ const RepostNotificationFragment = graphql(
105105
...NotificationAccountRepost
106106
}
107107
post {
108-
...ReferencedPost
108+
...Post
109109
}
110110
}`,
111-
[NotificationAccountRepostFragment, ReferencedPostFragment],
111+
[NotificationAccountRepostFragment, PostFragment],
112112
);
113113
export type RepostNotification = FragmentOf<typeof RepostNotificationFragment>;
114114

@@ -117,10 +117,10 @@ const QuoteNotificationFragment = graphql(
117117
__typename
118118
id
119119
quote {
120-
...ReferencedPost
120+
...Post
121121
}
122122
}`,
123-
[ReferencedPostFragment],
123+
[PostFragment],
124124
);
125125
export type QuoteNotification = FragmentOf<typeof QuoteNotificationFragment>;
126126

@@ -129,10 +129,10 @@ const MentionNotificationFragment = graphql(
129129
__typename
130130
id
131131
post {
132-
...ReferencedPost
132+
...Post
133133
}
134134
}`,
135-
[ReferencedPostFragment],
135+
[PostFragment],
136136
);
137137
export type MentionNotification = FragmentOf<typeof MentionNotificationFragment>;
138138

0 commit comments

Comments
 (0)