Trait pallet_reactions::PostReactionScores[][src]

pub trait PostReactionScores<T: Trait> {
    fn score_post_on_reaction(
        actor: T::AccountId,
        post: &mut Post<T>,
        reaction_kind: ReactionKind
    ) -> DispatchResult; }

Handler that will be called right before the post reaction is toggled.

Required methods

fn score_post_on_reaction(
    actor: T::AccountId,
    post: &mut Post<T>,
    reaction_kind: ReactionKind
) -> DispatchResult
[src]

Loading content...

Implementations on Foreign Types

impl<T: Trait> PostReactionScores<T> for ()[src]

Loading content...

Implementors

Loading content...