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

Changing static user feed to dynamic #85

Closed
wants to merge 2 commits into from

Conversation

r0bdiabl0
Copy link

@r0bdiabl0 r0bdiabl0 commented Mar 24, 2020

Changing code to from using a static (hard coded) value of user_feed which essentially uses the user actor to allow the model binding to use whatever is set in the model under activityActorMethodName(). This will allow anyone using a feed other than user to have automatic activities created/deleted with those actions.

I tested this locally and it works as intended. Both regular user feeds and any added feeds will now auto create and delete activities.

Fixes #84

Changing code to from using a static (hard coded) value of `user_feed` which essentially uses the `user` actor to allow the model binding to use whatever is set in the model under `activityActorMethodName()`. This will allow anyone using a feed other than `user` to have automatic activities created/deleted with those actions.
Changing static user feed to dynamic
@tbarbugli
Copy link
Member

Thank you for the PR! I see your point but this approach will break the library (the user feed group is a configuration parameter, with the new code this will change the feed group used and break most apps). My recommendation is to write a custom manager and change this logic there (see feed_manager_class config entry)

@pterk pterk closed this Jun 22, 2020
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.

Always uses User Feed when using Model Binding
3 participants