_User.isUserFollowing(type, id)

To check whether user is following any blog / user / article / writer.

Example Usage

{% if _User.isUserFollowing(type, id) %}
	{{'Followed by user'}}
{% endif %}

Parameters

ParamterTypeRequiredDescription
typestringyesEntity type (blog, user, article, writer)
idintyesID of the entity

Response Example

TRUE

Response Description

ConditionResponse
Logged in user is following the entity specified by type and its idTRUE
Logged in user is not following the entity specified by type and its idFALSE