follow method

Future follow(
  1. Uri object
)

Implementation

Future follow(Uri object) async {
  Map<String, dynamic> body = {
    "to": ["as:Public"],
    "type": "Follow",
    "object": object.toString()
  };

  String json = jsonEncode(body);

  await AuthBaseApi.post(
    url:
        Uri.parse("https://${Config.domainName}/outbox/${Config.ownActorId}"),
    body: json,
    headers: <String, String>{
      "content-type": "application/json",
    },
  );
}