-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add Power to Reactions #26
Comments
Any Update On This? |
No. Haven't designed it yet. Not sure it will be done in near future because I'm hardly working on another free open source secret project. |
With reaction power $reactionType = ReactionType::create([
'name' => 'Love',
'weight' => 2,
]);
$power = 3;
$reacter->reactTo($reactant, $reactionType, 3);
$reaction = Reaction::query()
->where('reactant_id', $reactant->getId())
->where('reacter_id', $reacter->getId())
->where('reaction_type_id', $reactionType->getId())
->first();
echo $reaction->getWeight(); // 6 I'm not sure that 5 likes with power of |
What is a default value of reaction power in all applications which are not using this feature?
// TODO: Make a research |
Need to work with Mutually Exclusive Reactions #75 |
Thanks A Lot For Considering This. |
Default power value |
Another one concept how Reaction Power could be used:
Based on activity user will be placed in different reaction power tiers:
In Question & Answer application user Jane solved more than 1000 questions. Jane reactions could have more power now. Additionally by this way it will be easier segregate reactions from more notable application users. |
One more thing to consider. When reacter created a reaction with There is no way (via user interface) on Medium to decrease claps count by custom amount. You can only remove all of your post claps and create them again. For example if you clapped on post 7 times - I'm not sure that I like Medium implementation because if there will be need to limit power count from one user - we will need to fetch reaction on validation layer to sum current power count with added power and check if reaction power limit was reached. Variant 1
Pros
Cons
Variant 2In Pros
Cons
Variant 3Add ProsCons |
This feature was redesigned to new Weighted Reaction System in #85 |
I'm closing this issue. Core logic was implemented in #91 and available in It will be released with Laravel Love v8. |
Possible names:
Case 1
Allow Reacter to react to Reactant with same reaction type more than once.
Similar to Medium's Claps:
Case 2
Reacter has some kind of authority inside of the application and his reactions should have more weight among others.
Additionally by this way it will be easier segregate reactions from more notable application users.
The text was updated successfully, but these errors were encountered: