mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-05 12:05:01 +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
7 lines
289 B
SQL
7 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)
|
|
);
|
|
|