|
1 | 1 | package io.getstream.client; |
2 | 2 |
|
| 3 | +import static io.getstream.core.utils.Auth.buildModerationToken; |
3 | 4 | import static io.getstream.core.utils.Auth.buildReactionsToken; |
4 | 5 | import static io.getstream.core.utils.Routes.*; |
5 | 6 | import static io.getstream.core.utils.Serialization.*; |
@@ -33,19 +34,19 @@ public CompletableFuture<Response> flagActivity( |
33 | 34 | } |
34 | 35 |
|
35 | 36 | public CompletableFuture<Response> flagReaction( |
36 | | - String entityId, String entityCreatorId, String reason, Map<String, Object> options) |
| 37 | + String entityId, String reportingUser, String reason, Map<String, Object> options) |
37 | 38 | throws StreamException { |
38 | | - return flag("stream:feeds:v2:reaction", entityId, entityCreatorId, reason, options); |
| 39 | + return flag("stream:feeds:v2:reaction", entityId, reportingUser, reason, options); |
39 | 40 | } |
40 | 41 |
|
41 | 42 | private CompletableFuture<Response> flag( |
42 | 43 | String entityType, |
43 | 44 | String entityId, |
44 | | - String entityCreatorId, |
| 45 | + String reportingUser, |
45 | 46 | String reason, |
46 | 47 | Map<String, Object> options) |
47 | 48 | throws StreamException { |
48 | | - final Token token = buildReactionsToken(secret, Auth.TokenAction.WRITE); |
49 | | - return mod.flag(token, entityType, entityId, entityCreatorId, reason, options); |
| 49 | + final Token token = buildModerationToken(secret, Auth.TokenAction.WRITE); |
| 50 | + return mod.flag(token, entityType, entityId, reportingUser, reason, options); |
50 | 51 | } |
51 | 52 | } |
0 commit comments