1 CREATE OR REPLACE FUNCTION community_aggregates_activity (i text)
18 INNER JOIN post p ON c.post_id = p.id
20 c.published > ('now'::timestamp - i::interval)
28 p.published > ('now'::timestamp - i::interval)) a
34 CREATE OR REPLACE FUNCTION site_aggregates_activity (i text)
48 INNER JOIN person u ON c.creator_id = u.id
50 c.published > ('now'::timestamp - i::interval)
57 INNER JOIN person u ON p.creator_id = u.id
59 p.published > ('now'::timestamp - i::interval)
60 AND u.local = TRUE) a;