mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-09 09:52:10 +00:00
87b577467b
* Adding ability to hide posts. - Adds an post/hide API route. - Adds a `show_hidden` (default false) to `GetPosts`. - Adds a `hidden` field to `PostView`. - Removes the single `post_id` from MarkPostAsRead. - Fixes #1403 * Add a check to make sure hidden field is true. * Fixing test. * Add back semicolon
8 lines
289 B
SQL
8 lines
289 B
SQL
CREATE TABLE post_hide (
|
|
post_id int REFERENCES post ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
|
|
person_id int REFERENCES person ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
|
|
published timestamp with time zone NOT NULL DEFAULT now(),
|
|
PRIMARY KEY (person_id, post_id)
|
|
);
|
|
|