0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Updated recommendation creation to use excerpt by default (#18118)

fixes https://github.com/TryGhost/Product/issues/3869
This commit is contained in:
Simon Backx 2023-09-13 16:23:52 +02:00 committed by GitHub
parent e9af2c86c1
commit 5d696d0d0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -78,6 +78,7 @@ const AddRecommendationModal: React.FC<AddRecommendationModalProps> = ({recommen
updatedRecommendation.favicon = oembed?.metadata?.icon ?? formState.favicon ?? null;
updatedRecommendation.one_click_subscribe = false;
}
updatedRecommendation.reason = updatedRecommendation.excerpt || null;
// Switch modal without changing the route (the second modal is not reachable by URL)
modal.remove();

View file

@ -39,7 +39,7 @@ const RecommendationReasonForm: React.FC<Props<EditOrAddRecommendation | Recomme
<TextArea
clearBg={true}
rows={3}
title="Reason for recommending (optional)"
title="Description (optional)"
value={formState.reason ?? ''}
onChange={e => updateForm(state => ({...state, reason: e.target.value}))}
/>