Goldfish-Social / Goldfish

Goldfish Social - Free open source alternative for Vine / TikTok (alpha). ActivityPub will come later!
https://goldfish.social
GNU Affero General Public License v3.0
260 stars 15 forks source link

Fixed post status fields being lowercase #28

Closed lukabuz closed 1 year ago

lukabuz commented 1 year ago

There is the following constraint on the posts table alter table public.posts add constraint posts_status_check check (((status)::text = any ((array['Public'::character varying, 'Unlisted'::character varying, 'Private'::character varying])::text[])));

Because of the values in these select fields being lowercase, the constraint fails when these values get used as the 'status' column in the insert statement.

I am not sure about how(and from where) this application is deployed, but on goldfish.social these values are uppercase and posting works.