feat: add optional mood to thoughts with custom moods support
Mood is an optional label+emoji string (e.g. "relaxed 😌") on thoughts.
Users can define up to 8 custom moods in profile settings.
Mood federates via AP Note JSON and displays on thought cards.
This commit is contained in:
@@ -223,6 +223,11 @@ export function ThoughtCard({
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{(thought.mood || (meta?.mood as string | undefined)) && (
|
||||
<p className="text-xs text-muted-foreground italic mt-2">
|
||||
feeling {thought.mood || (meta?.mood as string)}
|
||||
</p>
|
||||
)}
|
||||
</CardContent>
|
||||
|
||||
{token && (
|
||||
@@ -244,6 +249,7 @@ export function ThoughtCard({
|
||||
<ThoughtForm
|
||||
replyToId={thought.id}
|
||||
onSuccess={() => setIsReplyOpen(false)}
|
||||
currentUser={currentUser}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user