LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.25k stars 879 forks source link

Add option to order content by latest updated #4195

Open emilymclean opened 11 months ago

emilymclean commented 11 months ago

Requirements

Is your proposal related to a problem?

I am working on a moderation bot. Allowing content to be sorted by most recently updated would make it easier to moderate modified content and automatically resolve reports once an issue has been resolved.

Describe the solution you'd like.

Add a sort type of "RecentlyUpdated" to the API that sorts results by most recently changed or created.

Describe alternatives you've considered.

The only other alternative would be to scan through an entire community periodically to find any changed content, which is not feasible for large communities.

Additional context

No response

Nutomic commented 7 months ago

By recently updated do you mean posts that were recently edited? Or something like the existing "New comments" sort?

dessalines commented 7 months ago

We already have auto-resolving reports in the back-end.

Also PostAggregates::newest_comment_time already exists.

This is also not a good way to handle this, you'll likely just be spamming the API, when the moderation queue already exists.

emilymclean commented 7 months ago

This is about content updates to comments or posts, for the purposes of passing changes through moderation rules. It would prevent people from modifying their posts to add rule-breaking content after it has already been scanned by a moderation bot.

This is an important part of automated moderation and allowing the development of effective moderation tools.