Skip to content

Use the ActivityPub blog user as an actor if set to blog profile only#411

Merged
akirk merged 3 commits intomainfrom
activitypub-blog-actor
Dec 13, 2024
Merged

Use the ActivityPub blog user as an actor if set to blog profile only#411
akirk merged 3 commits intomainfrom
activitypub-blog-actor

Conversation

@akirk
Copy link
Copy Markdown
Owner

@akirk akirk commented Dec 11, 2024

Fixes #410

Instead of $actor = \get_author_posts_url( $user_id ); we now use $actor = \Activitypub\Collection\Actors::get_by_id( $user_id ); which also work for the ActivityPub blog actor.

@akirk
Copy link
Copy Markdown
Owner Author

akirk commented Dec 11, 2024

@pfefferle is this a good way to do it?

Comment thread feed-parsers/class-feed-parser-activitypub.php Outdated
@akirk
Copy link
Copy Markdown
Owner Author

akirk commented Dec 12, 2024

@pfefferle my question was more whether it's ok to use such an Activitypub\Collection\Actor for $activity->set_actor( $actor );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ActivityPub: use the blog user to follow when only the blog profile is enabled

2 participants