-
- Téléchargements
Re-add follow recommendations API (#7918)
* Re-add follow recommendations API GET /api/v1/suggestions Removed in 8efa081f due to Neo4J dependency. The algorithm uses triadic closures, takes into account suspensions, blocks, mutes, domain blocks, excludes locked and moved accounts, and prefers more recently updated accounts. * Track interactions with people you don't follow Replying to, favouriting and reblogging someone you're not following will make them show up in follow recommendations. The interactions have different weights: - Replying is 1 - Favouriting is 10 (decidedly positive interaction, but private) - Reblogging is 20 Following them, muting or blocking will remove them from the list, obviously. * Remove triadic closures, ensure potential friendships are trimmed
parent
ac82c938
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/controllers/api/v1/suggestions_controller.rb 21 ajouts, 0 suppressionapp/controllers/api/v1/suggestions_controller.rb
- app/lib/potential_friendship_tracker.rb 39 ajouts, 0 suppressionapp/lib/potential_friendship_tracker.rb
- app/models/account.rb 1 ajout, 28 suppressionsapp/models/account.rb
- app/models/concerns/account_interactions.rb 12 ajouts, 0 suppressionapp/models/concerns/account_interactions.rb
- app/services/favourite_service.rb 8 ajouts, 0 suppressionapp/services/favourite_service.rb
- app/services/post_status_service.rb 7 ajouts, 0 suppressionapp/services/post_status_service.rb
- app/services/reblog_service.rb 7 ajouts, 0 suppressionapp/services/reblog_service.rb
- config/routes.rb 1 ajout, 0 suppressionconfig/routes.rb
- spec/controllers/api/v1/suggestions_controller_spec.rb 35 ajouts, 0 suppressionspec/controllers/api/v1/suggestions_controller_spec.rb
- spec/models/account_spec.rb 0 ajout, 71 suppressionsspec/models/account_spec.rb
Chargement en cours
Veuillez vous inscrire ou vous se connecter pour commenter