mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix a crash when remote profiles is enabled
This commit is contained in:
parent
eda23bd3b0
commit
4d2fa93632
1 changed files with 3 additions and 1 deletions
|
@ -493,7 +493,9 @@ public class CrossActionHelper {
|
|||
* Fetch and federate the remote status
|
||||
*/
|
||||
public static void fetchAccountInRemoteInstance(@NonNull Context context, String acct, String instance, Callback callback) {
|
||||
|
||||
if (instance == null) {
|
||||
return;
|
||||
}
|
||||
MastodonSearchService mastodonSearchService = init(context, instance);
|
||||
new Thread(() -> {
|
||||
Call<Results> resultsCall = mastodonSearchService.search(null, acct, null, "accounts", null, null, null, null, null, null, 1);
|
||||
|
|
Loading…
Reference in a new issue