@@ -197,30 +197,38 @@ public void addReactionSkipModeration() throws Exception {
197197
198198 Activity activity =
199199 client
200- .flatFeed ("user" , "reactor " )
200+ .flatFeed ("user" , "1 " )
201201 .addActivity (
202- Activity .builder ().actor ("test" ).verb ("post " ).object ("test" ).build ())
202+ Activity .builder ().actor ("test" ).verb ("test " ).object ("test" ).build ())
203203 .join ();
204204
205205 Reaction blocked =
206206 Reaction .builder ()
207207 .activityID (activity .getID ())
208- .kind ("comment " )
209- .userID ("test-user " )
208+ .kind ("like " )
209+ .userID ("user123 " )
210210 .extraField ("text" , "pissoar" )
211211 .moderationTemplate ("moderation_template_reaction" )
212212 .build ();
213213
214- Reaction withModeration = client .reactions ().add ("test- user" , blocked ).join ();
214+ Reaction withModeration = client .reactions ().add ("user" , blocked ).join ();
215215 assertNotNull (withModeration .getModerationResponse ());
216216 assertEquals ("remove" , withModeration .getModerationResponse ().getRecommendedAction ());
217217
218+ Reaction skipped =
219+ Reaction .builder ()
220+ .activityID (activity .getID ())
221+ .kind ("like" )
222+ .userID ("user123" )
223+ .extraField ("text" , "pissoar" )
224+ .moderationTemplate ("moderation_template_reaction" )
225+ .build ();
218226 Reaction withoutModeration =
219227 client
220228 .reactions ()
221229 .add (
222- "test- user" ,
223- blocked ,
230+ "user" ,
231+ skipped ,
224232 new FeedID [0 ],
225233 new CustomQueryParameter ("skip_moderation" , "true" ))
226234 .join ();
@@ -233,27 +241,27 @@ public void updateReactionSkipModeration() throws Exception {
233241
234242 Activity activity =
235243 client
236- .flatFeed ("user" , "reactor " )
244+ .flatFeed ("user" , "1 " )
237245 .addActivity (
238- Activity .builder ().actor ("test" ).verb ("post " ).object ("test" ).build ())
246+ Activity .builder ().actor ("test" ).verb ("test " ).object ("test" ).build ())
239247 .join ();
240248
241249 Reaction safe =
242250 Reaction .builder ()
243251 .activityID (activity .getID ())
244- .kind ("comment " )
245- .userID ("test-user " )
252+ .kind ("like " )
253+ .userID ("user123 " )
246254 .extraField ("text" , "safe text" )
247255 .moderationTemplate ("moderation_template_reaction" )
248256 .build ();
249- Reaction created = client .reactions ().add ("test- user" , safe ).join ();
257+ Reaction created = client .reactions ().add ("user" , safe ).join ();
250258 assertNotNull (created .getModerationResponse ());
251259 assertEquals ("keep" , created .getModerationResponse ().getRecommendedAction ());
252260
253261 Reaction blockedUpdate =
254262 Reaction .builder ()
255263 .id (created .getId ())
256- .kind ("comment " )
264+ .kind ("like " )
257265 .extraField ("text" , "pissoar" )
258266 .moderationTemplate ("moderation_template_reaction" )
259267 .build ();
0 commit comments