Update triggers.sql

This commit is contained in:
dullbananas 2024-06-10 14:22:00 -07:00 committed by GitHub
parent dbeffbc7f1
commit a2dfb93de3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -564,6 +564,8 @@ BEGIN
IF NOT (NEW.path ~ ('*.' || id)::lquery) THEN
NEW.path = NEW.path || id;
END IF;
-- Set `ap_id`
NEW.ap_id = coalesce(NEW.ap_id, r.local_url('/comment/' || id));
RETURN NEW;
END
$$;