Skip to content

Can't cancel a pending private-account follow request #785

@rhaamo

Description

@rhaamo

My mastodon instance where having SSL issues so others instances can't talk with me.
I made a follow request to a protected account.
I repaired the SSL issue.
I can't cancel the follow request.

I think this may be the same if the person doesn't accept or refuse the request ?

I tried using the API (Mastodon.py) but an unfollow respond with:

method=POST path=/api/v1/accounts/3/unfollow format=*/* controller=Api::V1::AccountsController action=unfollow status=500 error='NoMethodError: undefined method `account' for nil:NilClass' duration=22.79 view=0.00 db=4.39
[xxx] NoMethodError (undefined method `account' for nil:NilClass):
[xxx] app/services/unfollow_service.rb:16:in `build_xml'
[xxx] app/services/unfollow_service.rb:9:in `call'
[xxx] app/controllers/api/v1/accounts_controller.rb:89:in `u

And a follow:

In [21]: mastodon.account_follow(3)
Out[21]: {'error': 'Validation failed: Account has already been taken'}

The user exists in my instance:

In [22]: mastodon.account(3)
Out[22]:
{'acct': '[email protected]',
 'avatar': 'xxx',
 'created_at': '2017-04-02T21:28:41.124Z',
 'display_name': 'xxx',
 'followers_count': 0,
 'following_count': 0,
 'header': 'xxx',
 'id': 3,
 'locked': True,
 'note': 'xxx',
 'statuses_count': 3,
 'url': 'https://mastodon.social/@xxx',
 'username': 'xxx'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiREST API, Streaming API, Web Push APIbugSomething isn't workingexpertise wantedExtra expertise is needed for implementationuiFront-end, design

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions