Loomio

Show (only) new posts since last visit

DU Rich Public Seen by 89

Much like every forum you've ever used, it'd be great if there was a way to view only the new posts in my stream since my last login.

I check in to Diaspora as often as possible but with several hundred contacts I can often miss posts, or forget where I was up to.

If I could filter my stream to only show me posts since my last visit, it would be really useful.

The logic behind the code should function much like any forum does:

1) User logs in
2) Stream SELECT statement needs a simple WHERE clause on the end to only select posts since whatever value was stored in a 'lastVisited' field
3) The current timestamp gets saved in lastVisited field against my userid

BC

Balasankar C Sat 5 Jul 2014 12:02PM

Idea is good, but I am doubtful about the implementation. What does "posts since my last visit" mean?? Does it refer to the posts that were posted after my last visit OR the posts which had some activities after my last visit? If it is the latter, then it is nice. Else, I may miss the new activities in an old post.

CG

Christian Giménez Sat 5 Jul 2014 6:00PM

So there are two option:

  • New posts since last visit.
  • Posts with updates (had activities).

The first one is necessary! We look for the stream for new posts.
The latter maybe is necessary, some posts that we didn't participate (comment/like/reshare) can have more activities.

G

goob Sat 5 Jul 2014 8:40PM

New posts since last visit are already displayed in the stream, with posts from before last visit underneath them.