From a76f4e8d15143336fb8c0b9498c9413b8633bd8c Mon Sep 17 00:00:00 2001 From: DanEric <dan@syncad.com> Date: Wed, 29 Jan 2025 14:28:52 +0000 Subject: [PATCH] amend! Remove hive_post_data img_url, instead extracting it from the json_metadata when it's needed Remove hive_post_data img_url, instead extracting it from the json_metadata when it's needed --- hive/db/sql_scripts/get_post_view_by_id.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hive/db/sql_scripts/get_post_view_by_id.sql b/hive/db/sql_scripts/get_post_view_by_id.sql index 89f202e37..5d56876d2 100644 --- a/hive/db/sql_scripts/get_post_view_by_id.sql +++ b/hive/db/sql_scripts/get_post_view_by_id.sql @@ -164,7 +164,7 @@ BEGIN hpd_p.permlink, hpd.title, hpd.body, - hivemind_app.extract_img_url_from_json_metadata(hpd.json) as img_url, + hivemind_app.extract_img_url_from_json_metadata(hpd.json)::character varying(1024) as img_url, hcd.category, hp.category_id, hp.depth, @@ -367,7 +367,7 @@ BEGIN hpd_p.permlink, hpd.title, hpd.body, - hivemind_app.extract_img_url_from_json_metadata(hpd.json) as img_url, + hivemind_app.extract_img_url_from_json_metadata(hpd.json)::character varying(1024) as img_url, hcd.category, hp.category_id, hp.depth, -- GitLab