File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ export async function sharePostToGroup({
325
325
{
326
326
link : {
327
327
share_scrape_data : JSON . stringify ( {
328
- share_type : me . type === TargetType . Page ? 37 : 22 ,
328
+ share_type : postOwner . type === TargetType . Group ? 37 : 22 ,
329
329
share_params : [ postId ] ,
330
330
} ) ,
331
331
} ,
@@ -372,9 +372,13 @@ export async function sharePostToGroup({
372
372
__relay_internal__pv__StoriesArmadilloReplyEnabledrelayprovider : true ,
373
373
__relay_internal__pv__EventCometCardImage_prefetchEventImagerelayprovider : false ,
374
374
} ,
375
- doc_id : "8358507460852422 " ,
375
+ doc_id : "8288041211276925 " ,
376
376
} ) ;
377
377
const json = JSON . parse ( res ?. split ?. ( "\n" ) ?. [ 0 ] ) ;
378
378
console . log ( json ) ;
379
+
380
+ const err = json ?. errors ?. [ 0 ] ?. description ;
381
+ if ( err ) throw new Error ( err ) ;
382
+
379
383
return deepFindKeyInObject ( json , "story" ) ?. url ;
380
384
}
You can’t perform that action at this time.
0 commit comments