Skip to content

Commit

Permalink
restore blocks and mutes to follower lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
0xthrpw committed Jul 30, 2024
1 parent 70ba576 commit 10a9d01
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ BEGIN
-- match the address parameter
v.record_data = addr_bytea AND
-- Valid record data lookup
v.user IS NOT NULL --AND
v.user IS NOT NULL AND
-- NOT blocked
-- v.has_block_tag = FALSE AND
v.has_block_tag = FALSE AND
-- NOT muted
-- v.has_mute_tag = FALSE
v.has_mute_tag = FALSE
GROUP BY
v.user,
v.token_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ BEGIN
INTO primary_list_address
FROM efp_lists as v, efp_account_metadata AS meta
WHERE v.token_id = primary_list_id AND (
meta.address = v.user AND
convert_hex_to_bigint(meta.value) = v.token_id
);
meta.address = v.user AND
convert_hex_to_bigint(meta.value) = v.token_id
);

RETURN primary_list_address;
END;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ OR REPLACE VIEW public.view__events__efp_accounts_with_primary_list AS
SELECT
v.user as address,
v.token_id as primary_list_token_id
FROM efp_lists as v, efp_account_metadata AS meta
FROM public.efp_lists as v, public.efp_account_metadata AS meta
WHERE
meta.address = v.user AND
convert_hex_to_bigint(meta.value) = v.token_id;
public.convert_hex_to_bigint(meta.value) = v.token_id;


-- migrate:down
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ FROM
LEFT JOIN PUBLIC.efp_lists AS l ON l.list_storage_location_chain_id = record_tags.chain_id
AND l.list_storage_location_contract_address = record_tags.contract_address
AND l.list_storage_location_slot = record_tags.slot
INNER JOIN efp_account_metadata meta ON l.user = meta.address AND l.token_id = convert_hex_to_bigint(meta.value);
INNER JOIN public.efp_account_metadata meta ON l.user = meta.address AND l.token_id = public.convert_hex_to_bigint(meta.value);



Expand Down

0 comments on commit 10a9d01

Please sign in to comment.