From 89fbf51401b11c538e60cd4fc5b038aaea8c0ae1 Mon Sep 17 00:00:00 2001 From: kiliczsh Date: Mon, 3 Jul 2023 22:04:23 +0300 Subject: [PATCH] Fix follow record and unfollow record --- README.md | 4 ++-- gokyuzu/__init__.py | 4 ++-- pyproject.toml | 2 +- setup.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9ce70c8..4b5146b 100644 --- a/README.md +++ b/README.md @@ -165,8 +165,8 @@ List of Implemented API Calls: ### Development ```bash -python -m venv venv -source venv/bin/activate +python -m venv .venv +source .venv/bin/activate pip install -r requirements.txt ``` diff --git a/gokyuzu/__init__.py b/gokyuzu/__init__.py index 6beebba..d808dcf 100644 --- a/gokyuzu/__init__.py +++ b/gokyuzu/__init__.py @@ -296,7 +296,7 @@ def followRecord(self, handle=None, user_did=None): raise ValueError("Invalid username") follow_request_data = { - "repo": self.DID, + "repo": self.SESSION.DID, "record": { "subject": user_did, "createdAt": BlueskyHelper.getTimestamp(), @@ -317,7 +317,7 @@ def unfollowRecord(self, handle=None, user_did=None): raise ValueError("Invalid username") unfollow_request_data = { - "repo": self.DID, + "repo": self.SESSION.DID, "record": { "subject": user_did, "createdAt": BlueskyHelper.getTimestamp(), diff --git a/pyproject.toml b/pyproject.toml index 76c1fa4..e663ba7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [tool.poetry] name = "gokyuzu" -version = "2.0.3" +version = "2.0.4" description = "bsky.social client library" authors = ["Muhammed Kılıç "] license = "MIT" diff --git a/setup.py b/setup.py index 08ff012..bcfd87c 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='gokyuzu', - version='2.0.3', + version='2.0.4', description='bsky.social client library', long_description=open('README.md', 'r', encoding='utf-8').read(), long_description_content_type='text/markdown',