Skip to content
Snippets Groups Projects
Commit 977447e7 authored by Krzysztof Leśniak's avatar Krzysztof Leśniak Committed by Dan Notestein
Browse files

Don't use hive_rowid in hivemind_app.hive_raw_notifications_as_view

parent 7e5ca87a
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !863. Comments created here will be created in the context of that merge request.
......@@ -118,7 +118,7 @@ CREATE OR REPLACE VIEW hivemind_app.hive_raw_notifications_as_view
WHERE m.follower = hpv.parent_author_id AND m.following = hpv.author_id)
UNION ALL
SELECT f.block_num,
hivemind_app.notification_id(f.block_num, 15, f.hive_rowid::integer) AS id,
hivemind_app.notification_id(f.block_num, 15, (row_number() OVER ())::INTEGER) AS id,
0 AS post_id,
15 AS type_id,
(select hb.created_at from hivemind_app.blocks_view hb where hb.num = (f.block_num - 1)) as created_at, -- use time of previous block to match head_block_time behavior at given block
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment