···3434 language plpgsql as
3535$$
3636begin
3737- delete from author_feeds where did = OLD.did and item = OLD.at_uri and typ = 'post';
3737+ delete from author_feeds where did = OLD.did and at_uri = OLD.at_uri and typ = 'post';
3838 return OLD;
3939end;
4040$$;
···6767 language plpgsql as
6868$$
6969begin
7070- delete from author_feeds where did = OLD.did and item = OLD.post and typ = 'repost';
7070+ delete from author_feeds where did = OLD.did and post = OLD.post and typ = 'repost';
7171 return OLD;
7272end;
7373$$;