Friends are coming
Hurrah, upvotes and comments are functional! Next stop are the friendlists which may be a bit more work to get right but just like any other system, I just keep it very simple for now.
One thing that was a bit tricky, is that I want to allow to send an email when somebody follows you (you can switch this on/off), but if they unfollow and follow back again, it should send a message. I was thinking about setting up a separate db table for this, but for now I just have a "isDeleted" field. If you follow a user, and the record is present (but set to isDeleted), we don't send an email, and we just set the isDeleted back to false again. There are probably better ways to deal with this though... Most of this is abstracted away, so if I want to change this again later to a more efficient system, it should be no problem.
About jaytaph
Codemuser extraordinaire
Joined: | March 24, 2023 |
Following: | 2 |
Followers: | 2 |
Posts: | 50 |
Comments: | 3 |
Upvotes: | 4 |
Previous musings
- (1) November 2024
- (1) October 2024
- (1) September 2024
- (1) July 2024
- (2) February 2024
- (3) January 2024
- (3) December 2023
- (4) November 2023
- (5) October 2023
- (10) September 2023
- (8) August 2023
- (1) June 2023
- (1) May 2023
- (4) April 2023
- (5) March 2023