This repository was archived by the owner on Sep 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-12
lines changed
Sources/WordPressKit/Services Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ let package = Package(
1111 targets: [
1212 . binaryTarget(
1313 name: " WordPressKit " ,
14- url: " https://github.com/user-attachments/files/20801891 /WordPressKit.zip " ,
15- checksum: " a64680b161f04e5431109b2fcc513ed83356793309b3e1ba8d2fd0a8d128a3c9 "
14+ url: " https://github.com/user-attachments/files/20825728 /WordPressKit.zip " ,
15+ checksum: " 097a2e55e4ec66b4d8c37bc49181df33c4b62ea9d130fac4de057a0867b68a69 "
1616 ) ,
1717 ]
1818)
Original file line number Diff line number Diff line change @@ -27,17 +27,22 @@ open class ActivityServiceRemote: ServiceRemoteWordPressComREST {
2727 ///
2828 /// - Returns: An array of activities and a boolean indicating if there's more activities to fetch.
2929 ///
30- open func getActivityForSite( _ siteID: Int ,
31- offset: Int = 0 ,
32- count: Int ,
33- after: Date ? = nil ,
34- before: Date ? = nil ,
35- group: [ String ] = [ ] ,
36- searchText: String ? = nil ,
37- success: @escaping ( _ activities: [ Activity ] , _ hasMore: Bool ) -> Void ,
38- failure: @escaping ( Error ) -> Void ) {
39-
30+ open func getActivityForSite(
31+ _ siteID: Int ,
32+ offset: Int = 0 ,
33+ count: Int ,
34+ after: Date ? = nil ,
35+ before: Date ? = nil ,
36+ group: [ String ] = [ ] ,
37+ rewindable: Bool ? = nil ,
38+ searchText: String ? = nil ,
39+ success: @escaping ( _ activities: [ Activity ] , _ hasMore: Bool ) -> Void ,
40+ failure: @escaping ( Error ) -> Void
41+ ) {
4042 var path = URLComponents ( string: " sites/ \( siteID) /activity " )
43+ if rewindable == true , let currentPath = path? . path {
44+ path? . path = currentPath. appending ( " /rewindable " )
45+ }
4146
4247 path? . queryItems = group. map { URLQueryItem ( name: " group[] " , value: $0) }
4348
You can’t perform that action at this time.
0 commit comments