Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to follow Mastodon bots #2098

Closed
raphgilles opened this issue Apr 1, 2020 · 2 comments
Closed

Unable to follow Mastodon bots #2098

raphgilles opened this issue Apr 1, 2020 · 2 comments
Labels
🕸️ ActivityPub Federation-related issue 🐛 Bug Something isn't working ❗ Priority: Mid Somewhat important
Projects

Comments

@raphgilles
Copy link

Hello,

This is not the first time that I tried to follow a bot from Mastodon, but the search found nothing.

Can you think it could be possible to enable the possibility to follow bots in the future ?

Thank you !

@trwnh
Copy link
Member

trwnh commented Apr 2, 2020

this is probably because they are presented as Application or Service instead of as Person

potentially relevant areas of code:

if(isset($remote['type']) && in_array($remote['type'], ['Note', 'Person']) == true) {
$type = $remote['type'];
if($type == 'Person') {

public function discover()
{
$this->fetch();
$res = $this->getResponse();
if (empty($res) || !in_array('type', $res) || $res['type'] !== 'Person') {
throw new \Exception('Invalid Actor Object');
}
return $res;
}

$typeCheck = in_array($type, ['Person', 'Tombstone']);

switch ($type) {
case 'Person':

@trwnh trwnh added ❗ Priority: Mid Somewhat important 🐛 Bug Something isn't working 🕸️ ActivityPub Federation-related issue labels Apr 2, 2020
@trwnh trwnh added this to the 0.11.0 - Circles Update milestone Apr 2, 2020
@trwnh trwnh added this to To do in Federation via automation Apr 2, 2020
@dansup
Copy link
Member

dansup commented Jan 3, 2024

Fixed!

@dansup dansup closed this as completed Jan 3, 2024
Federation automation moved this from To do to Done Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🕸️ ActivityPub Federation-related issue 🐛 Bug Something isn't working ❗ Priority: Mid Somewhat important
Projects
Federation
  
Done
Development

No branches or pull requests

3 participants