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

Auto-follow when manuallyApprovesFollowers is present and false #153

Closed
fauno opened this issue Mar 14, 2024 · 16 comments
Closed

Auto-follow when manuallyApprovesFollowers is present and false #153

fauno opened this issue Mar 14, 2024 · 16 comments
Assignees
Labels
testing Someone is testing this item currently

Comments

@fauno
Copy link
Collaborator

fauno commented Mar 14, 2024

An Actor with manuallyApprovesFollowers set to false should auto-accept Follow requests and dispatch an onapproved webhook. With this a website can control if they want to handle follows themselves or let the Social Inbox do that for them.

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers"
    }
  ],
  "type": "Person",
  "manuallyApprovesFollowers": true,
}
@fauno
Copy link
Collaborator Author

fauno commented Mar 14, 2024

Note APActor type doesn't include this attribute.

@fauno
Copy link
Collaborator Author

fauno commented Mar 14, 2024

Something @catdevnull could implement early on M4

@catdevnull
Copy link
Collaborator

should this be available for all actors or just used in the announcements actor?

@RangerMauve
Copy link
Contributor

All actors would be best IMO

@RangerMauve
Copy link
Contributor

Hmm, maybe we can start with setting this flag in the setInfo call to start? Just worried we'd have cache invalidation issues and extra requests otherwise.

@fauno
Copy link
Collaborator Author

fauno commented Mar 15, 2024

I meant for all actors yeah. @RangerMauve the Jekyll plugin sends an Update for the Actor object when it detects it changed, so we should be fine (we did this so profile pics and info was correctly updated)

@catdevnull
Copy link
Collaborator

isn't this (seemingly incorrectly) implemented by hyphacoop/social.distributed.press@2f97d57?

@RangerMauve RangerMauve transferred this issue from hyphacoop/social.distributed.press Apr 30, 2024
@sutty-coop
Copy link
Collaborator

Asignade a Agus - necesitamos su usuarie de Github

@sutty-coop sutty-coop moved this from Todo to In Progress in Distributed Press Organizing Jun 3, 2024
@RangerMauve
Copy link
Contributor

Technically we have an alternative for this already in the account info when you create your account, but it might be useful to also pull this setting from the actor to simplify deployment further.

@RangerMauve
Copy link
Contributor

I think we should add some sort of caching to our http requests first.

@fauno
Copy link
Collaborator Author

fauno commented Jul 8, 2024

Technically we have an alternative for this already in the account info when you create your account, but it might be useful to also pull this setting from the actor to simplify deployment further.

Doesn't this line implement it?

https://github.com/hyphacoop/social.distributed.press/blob/main/src/server/apsystem.ts#L355

@RangerMauve
Copy link
Contributor

Could you elaborate on your point? The line you linked to is empty for me.

@RangerMauve
Copy link
Contributor

The functionality fetches from the info stored in the local store, not from the actor published on AP.

@fauno
Copy link
Collaborator Author

fauno commented Jul 8, 2024

The functionality fetches from the info stored in the local store, not from the actor published on AP.

oooh i see!

@sutty-coop
Copy link
Collaborator

@fauno does this conversation above ☝ mean that @magush27 has to fix their code to fetch info from the actor instead of the local storage? If affirmative, let's ask Agus if they need any help changing this

@sutty-coop sutty-coop assigned fauno and unassigned magush27 and sutty-coop Jul 18, 2024
@sutty-coop sutty-coop added testing Someone is testing this item currently and removed enhancement New feature or request labels Jul 18, 2024
@fauno
Copy link
Collaborator Author

fauno commented Jul 18, 2024

No need! Just moved it to another part of the plugin and now it works!

@fauno fauno closed this as completed Jul 18, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Distributed Press Organizing Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Someone is testing this item currently
Projects
Status: Done
Development

No branches or pull requests

5 participants