From 137ffb8f71076839d8657028fdc3fa126f92b7b7 Mon Sep 17 00:00:00 2001
From: Marco Realacci <marco@marcorealacci.me>
Date: Tue, 22 Nov 2022 17:45:18 +0100
Subject: [PATCH] Add follow status to getMyProfile

---
 doc/api.yaml | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/doc/api.yaml b/doc/api.yaml
index e9995dd..08e5df3 100644
--- a/doc/api.yaml
+++ b/doc/api.yaml
@@ -462,6 +462,7 @@ paths:
                 username: "Maria"
                 followers: 25
                 following: 32
+                followed: true
                 photos: 50
         '404':
           description: User not found (or the authorized user is banned).
@@ -870,10 +871,14 @@ components:
       type: integer
       example: 69
       description: Number of following users.
-    liked_boolean:
+    like_status:
       type: boolean
       example: true
       description: Whether the user liked the photo.
+    follow_status:
+      type: boolean
+      example: false
+      description: Whether the user follows the other user.
     photos_n:
       type: integer
       example: 90
@@ -890,6 +895,8 @@ components:
           $ref: "#/components/schemas/following_n"
         photos:
           $ref: "#/components/schemas/photos_n"
+        followed:
+          $ref: "#/components/schemas/follow_status"
     user_photo_stream:
       type: array
       minItems: 0
@@ -909,7 +916,7 @@ components:
         comments:
           $ref: "#/components/schemas/comments_n"
         liked:
-          $ref: "#/components/schemas/liked_boolean"
+          $ref: "#/components/schemas/like_status"
     photo_stream:
       type: array
       minItems: 0
@@ -933,7 +940,7 @@ components:
         comments:
           $ref: "#/components/schemas/comments_n"
         liked:
-          $ref: "#/components/schemas/liked_boolean"
+          $ref: "#/components/schemas/like_status"
     comments:
       type: array
       minItems: 0