Skip to content
Snippets Groups Projects
Commit 2ab77413 authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Revert the is_muted carryover for now. We will need that though unless...

[JES] Revert the is_muted carryover for now. We will need that though unless someone has a different idea of how to fetch posts muted in communities by admins/mods
parent 193f4312
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!370Jsalyers muting at sql level
...@@ -45,8 +45,7 @@ BEGIN ...@@ -45,8 +45,7 @@ BEGIN
hp.community_title, hp.community_title,
hp.role_id, hp.role_id,
hp.is_pinned, hp.is_pinned,
hp.curator_payout_value, hp.curator_payout_value
hp.is_muted
FROM FROM
hive_posts_view hp hive_posts_view hp
JOIN hive_subscriptions hs ON hp.community_id = hs.community_id JOIN hive_subscriptions hs ON hp.community_id = hs.community_id
...@@ -110,8 +109,7 @@ BEGIN ...@@ -110,8 +109,7 @@ BEGIN
hp.community_title, hp.community_title,
hp.role_id, hp.role_id,
hp.is_pinned, hp.is_pinned,
hp.curator_payout_value, hp.curator_payout_value
hp.is_muted
FROM FROM
hive_posts_view hp hive_posts_view hp
JOIN hive_subscriptions hs ON hp.community_id = hs.community_id JOIN hive_subscriptions hs ON hp.community_id = hs.community_id
...@@ -175,8 +173,7 @@ BEGIN ...@@ -175,8 +173,7 @@ BEGIN
hp.community_title, hp.community_title,
hp.role_id, hp.role_id,
hp.is_pinned, hp.is_pinned,
hp.curator_payout_value, hp.curator_payout_value
hp.is_muted
FROM FROM
( (
SELECT SELECT
...@@ -251,8 +248,7 @@ BEGIN ...@@ -251,8 +248,7 @@ BEGIN
hp.community_title, hp.community_title,
hp.role_id, hp.role_id,
hp.is_pinned, hp.is_pinned,
hp.curator_payout_value, hp.curator_payout_value
hp.is_muted
FROM FROM
hive_posts_view hp hive_posts_view hp
JOIN hive_subscriptions hs ON hp.community_id = hs.community_id JOIN hive_subscriptions hs ON hp.community_id = hs.community_id
...@@ -316,8 +312,7 @@ BEGIN ...@@ -316,8 +312,7 @@ BEGIN
hp.community_title, hp.community_title,
hp.role_id, hp.role_id,
hp.is_pinned, hp.is_pinned,
hp.curator_payout_value, hp.curator_payout_value
hp.is_muted
FROM FROM
hive_posts_view hp hive_posts_view hp
JOIN hive_subscriptions hs ON hp.community_id = hs.community_id JOIN hive_subscriptions hs ON hp.community_id = hs.community_id
...@@ -382,8 +377,7 @@ BEGIN ...@@ -382,8 +377,7 @@ BEGIN
hp.community_title, hp.community_title,
hp.role_id, hp.role_id,
hp.is_pinned, hp.is_pinned,
hp.curator_payout_value, hp.curator_payout_value
hp.is_muted
FROM FROM
( (
SELECT SELECT
...@@ -457,8 +451,7 @@ BEGIN ...@@ -457,8 +451,7 @@ BEGIN
hp.community_title, hp.community_title,
hp.role_id, hp.role_id,
hp.is_pinned, hp.is_pinned,
hp.curator_payout_value, hp.curator_payout_value
hp.is_muted
FROM FROM
hive_posts_view hp hive_posts_view hp
JOIN hive_subscriptions hs ON hp.community_id = hs.community_id JOIN hive_subscriptions hs ON hp.community_id = hs.community_id
......
...@@ -35,8 +35,7 @@ CREATE TYPE bridge_api_post AS ( ...@@ -35,8 +35,7 @@ CREATE TYPE bridge_api_post AS (
community_title VARCHAR, community_title VARCHAR,
role_id SMALLINT, role_id SMALLINT,
is_pinned BOOLEAN, is_pinned BOOLEAN,
curator_payout_value VARCHAR, curator_payout_value VARCHAR
is_muted BOOLEAN
); );
DROP TYPE IF EXISTS bridge_api_post_reblogs CASCADE; DROP TYPE IF EXISTS bridge_api_post_reblogs CASCADE;
......
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