+1
__generated__/lexicons.ts
+1
__generated__/lexicons.ts
+11
-3
src/components/NotificationsPage.tsx
+11
-3
src/components/NotificationsPage.tsx
···
62
)}
63
</>
64
)}
65
{notification.reason === "follow" && (
66
<>
67
followed you · {formatRelativeTime(
···
85
</div>
86
)
87
: null}
88
-
{notification.reason === "gallery-comment" && galleriesMap.get(
89
-
(notification.record as Comment).subject,
90
-
)
91
? (
92
<>
93
{(notification.record as Comment).text}
···
62
)}
63
</>
64
)}
65
+
{notification.reason === "reply" && (
66
+
<>
67
+
replied to your comment · {formatRelativeTime(
68
+
new Date((notification.record as Comment).createdAt),
69
+
)}
70
+
</>
71
+
)}
72
{notification.reason === "follow" && (
73
<>
74
followed you · {formatRelativeTime(
···
92
</div>
93
)
94
: null}
95
+
{(notification.reason === "gallery-comment" ||
96
+
notification.reason === "reply") && galleriesMap.get(
97
+
(notification.record as Comment).subject,
98
+
)
99
? (
100
<>
101
{(notification.record as Comment).text}
+5
src/lib/notifications.ts
+5
src/lib/notifications.ts
···
45
reason = "gallery-favorite";
46
} else if (record.$type === "social.grain.graph.follow") {
47
reason = "follow";
48
+
} else if (
49
+
record.$type === "social.grain.comment" &&
50
+
record.replyTo
51
+
) {
52
+
reason = "reply";
53
} else if (record.$type === "social.grain.comment") {
54
reason = "gallery-comment";
55
} else {