Returns the most recent post-published and comment-added events, collapsed to one entry per post per action, with a pre-rendered message and a portal route for each.
Scope the stream with context[space_id] or context[user_id]; when both are present the space wins. per_page defaults to 5 and is capped by the fluent_community/max_per_page filter (100 by default), and has_more is derived by fetching one extra row rather than by counting. A call with no space returns pinned_posts as well; scoped to a space, pinned posts are returned only when with_pins is set, and with_pending_count adds the number of pending join requests for callers who can add members.
Endpoint
Method:
GETPath:
/activitiesEdition: Core
Controller:
ActivityController@getActivitiesRoute source:
fluent-community/app/Http/Routes/api.php:139Controller source:
fluent-community/app/Http/Controllers/ActivityController.phpCallers who are not community moderators see only activity flagged public or belonging to a space they are a member of.
Activity from deactivated or blocked profiles, and from posts that are no longer published, is filtered out.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
GET List Activities
Returns the most recent post-published and comment-added events, collapsed to one entry per post per action, with a pre-rendered message and a portal route for each.
Controller: ActivityController@getActivities
Route source: fluent-community/app/Http/Routes/api.php:139
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Query Parameters
Context read via $request->get() in getActivities().
Per Page read via $request->get() in getActivities().
5Page read via $request->get() in getActivities().
1With Pins read via $request->get() in getActivities().
Is Trending read via $request->get() in getActivities().
With Pending Count read via $request->get() in getActivities().
Responses
Successful response