File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,22 @@ public function verifyCredentials(Request $request)
193
193
'fields ' => [],
194
194
];
195
195
196
+ if ($ request ->has (self ::PF_API_ENTITY_KEY )) {
197
+ $ settings = $ user ->settings ;
198
+ $ other = array_merge (AccountService::defaultSettings ()['other ' ], $ settings ->other ?? []);
199
+ $ res ['settings ' ] = [
200
+ 'reduce_motion ' => (bool ) $ settings ->reduce_motion ,
201
+ 'high_contrast_mode ' => (bool ) $ settings ->high_contrast_mode ,
202
+ 'video_autoplay ' => (bool ) $ settings ->video_autoplay ,
203
+ 'media_descriptions ' => (bool ) $ settings ->media_descriptions ,
204
+ 'crawlable ' => (bool ) $ settings ->crawlable ,
205
+ 'show_profile_follower_count ' => (bool ) $ settings ->show_profile_follower_count ,
206
+ 'show_profile_following_count ' => (bool ) $ settings ->show_profile_following_count ,
207
+ 'public_dm ' => (bool ) $ settings ->public_dm ,
208
+ 'disable_embeds ' => (bool ) $ other ['disable_embeds ' ],
209
+ ];
210
+ }
211
+
196
212
return $ this ->json ($ res );
197
213
}
198
214
You can’t perform that action at this time.
0 commit comments