- // Maximum number of results to return. Defaults to 20.
- $limit = (int)!isset($_REQUEST['limit']) ? 20 : $_REQUEST['limit'];
- // Return results older than id
- $max_id = (int)!isset($_REQUEST['max_id']) ? 0 : $_REQUEST['max_id'];
- // Return results newer than id
- $since_id = (int)!isset($_REQUEST['since_id']) ? 0 : $_REQUEST['since_id'];
- // Return results immediately newer than id
- $min_id = (int)!isset($_REQUEST['min_id']) ? 0 : $_REQUEST['min_id'];
+ $request = $this->getRequest([
+ 'limit' => 20, // Maximum number of results to return. Defaults to 20.
+ 'max_id' => 0, // Return results older than id
+ 'since_id' => 0, // Return results newer than id
+ 'min_id' => 0, // Return results immediately newer than id
+ 'with_muted' => false, // Pleroma extension: return activities by muted (not by blocked!) users.
+ ], $request);