mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-02 20:15:24 +02:00
fix: set meta description and image for shared recipes (#1635)
This commit is contained in:
parent
25c40b8abf
commit
1c938cb835
6 changed files with 21 additions and 18 deletions
|
@ -22,6 +22,7 @@ export default defineComponent({
|
|||
const api = usePublicApi();
|
||||
|
||||
const { meta, title } = useMeta();
|
||||
const { recipeMeta } = useRecipeMeta();
|
||||
|
||||
const recipe = useAsync(async () => {
|
||||
const { data, error } = await api.shared.getShared(recipeId);
|
||||
|
@ -33,8 +34,8 @@ export default defineComponent({
|
|||
|
||||
if (data) {
|
||||
title.value = data?.name || "";
|
||||
const metaObj = useRecipeMeta(ref(data));
|
||||
meta.value = metaObj().meta;
|
||||
const metaObj = recipeMeta(ref(data));
|
||||
meta.value = metaObj.meta;
|
||||
}
|
||||
|
||||
return data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue