mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 08:11:20 +00:00
Update triggers.sql
This commit is contained in:
parent
dbeffbc7f1
commit
a2dfb93de3
1 changed files with 2 additions and 0 deletions
|
@ -564,6 +564,8 @@ BEGIN
|
||||||
IF NOT (NEW.path ~ ('*.' || id)::lquery) THEN
|
IF NOT (NEW.path ~ ('*.' || id)::lquery) THEN
|
||||||
NEW.path = NEW.path || id;
|
NEW.path = NEW.path || id;
|
||||||
END IF;
|
END IF;
|
||||||
|
-- Set `ap_id`
|
||||||
|
NEW.ap_id = coalesce(NEW.ap_id, r.local_url('/comment/' || id));
|
||||||
RETURN NEW;
|
RETURN NEW;
|
||||||
END
|
END
|
||||||
$$;
|
$$;
|
||||||
|
|
Loading…
Reference in a new issue