<reponame>z3by/tweety-django-vue
from django import template

register = template.Library()


@register.filter(name="is_following")
def is_following(first_user, second_user):
    return first_user.is_following(second_user)


@register.filter(name="is_liking")
def is_liking(user, tweet):
    return tweet.is_liked(user)


@register.filter(name="is_retweeting")
def is_retweeting(user, tweet):
    return tweet.is_retweeted(user)

from django import template

register = template.Library()


@register.filter(name="is_following")
def is_following(first_user, second_user):
    return first_user.is_following(second_user)


@register.filter(name="is_liking")
def is_liking(user, tweet):
    return tweet.is_liked(user)


@register.filter(name="is_retweeting")
def is_retweeting(user, tweet):
    return tweet.is_retweeted(user)