@Override
  public ImportResult importItem(UUID jobId,
      IdempotentImportExecutor idempotentImportExecutor,
      CookiesAndUrlAuthData authData,
      SocialActivityContainerResource data) throws Exception {
    checkState(authData.getCookies().size() == 1,
        "Exactly 1 cookie expected: %s",
        authData.getCookies());

    MastodonHttpUtilities utilities = new MastodonHttpUtilities(
        authData.getCookies().get(0),
        authData.getUrl());


    for (SocialActivityModel activity : data.getActivities()) {
        if (activity.getType() == SocialActivityType.NOTE) {
          idempotentImportExecutor.executeAndSwallowIOExceptions(
                  activity.getId(),
                  activity.getContent(),
              () -> {
                postNode(activity, utilities, jobId);
                return 1;
              });
        }
      }


    return ImportResult.OK;
  }
Imports post data to Mastodon.
<p> Currently only supports text and not images.
extensions/data-transfer/portability-data-transfer-mastodon/src/main/java/org/datatransferproject/transfer/mastodon/social/MastodonActivityImport.java