Skip to content

Commit

Permalink
feat: remove subredditId
Browse files Browse the repository at this point in the history
This is useless info since the ID of the subreddit is not used
anywhere within snoots, and the subreddit name (`subreddit`) is
unique anyway.
  • Loading branch information
thislooksfun committed Mar 13, 2021
1 parent 65f94c7 commit 431efe2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/objects/voteable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export interface VoteableData extends ContentData {
sendReplies: boolean;
stickied: boolean;
subreddit: string;
subredditId: string;
subredditType: SubredditType;
userReports: string[];
}
Expand Down Expand Up @@ -131,7 +130,6 @@ export default abstract class Voteable extends Content implements VoteableData {
sendReplies: boolean;
stickied: boolean;
subreddit: string;
subredditId: string;
subredditType: SubredditType;
userReports: string[];

Expand Down Expand Up @@ -180,7 +178,6 @@ export default abstract class Voteable extends Content implements VoteableData {
this.sendReplies = data.sendReplies;
this.stickied = data.stickied;
this.subreddit = data.subreddit;
this.subredditId = data.subredditId;
this.subredditType = data.subredditType;
this.userReports = data.userReports;
}
Expand Down

0 comments on commit 431efe2

Please sign in to comment.