···2233const LIKE_WINDOW = 100
44const FOLLOW_WINDOW = 100
55+const FOLLOW_SUGGESTION_WINDOW = 100
56const SEEN_WINDOW = 100
6778export type SeenPost = {
···2223 * The last 100 DIDs the user has followed
2324 */
2425 follows: string[]
2626+ /*
2727+ * The last 100 DIDs of suggested follows based on last follows
2828+ */
2929+ followSuggestions: string[]
2530 /**
2631 * The last 100 post URIs the user has seen from the Discover feed only
2732 */
···3136const userActionHistory: UserActionHistory = {
3237 likes: [],
3338 follows: [],
3939+ followSuggestions: [],
3440 seen: [],
3541}
3642···5864 .concat(dids)
5965 .slice(-FOLLOW_WINDOW)
6066}
6767+6868+export function followSuggestion(dids: string[]) {
6969+ userActionHistory.followSuggestions = userActionHistory.followSuggestions
7070+ .concat(dids)
7171+ .slice(-FOLLOW_SUGGESTION_WINDOW)
7272+}
7373+6174export function unfollow(dids: string[]) {
6275 userActionHistory.follows = userActionHistory.follows.filter(
6376 uri => !dids.includes(uri),