_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
Paramter | Type | Required | Description |
---|---|---|---|
type | string | yes | Entity type (blog, user, article, writer) |
id | int | yes | ID of the entity |
Response Example
TRUE
Response Description
Condition | Response |
---|---|
Logged in user is following the entity specified by type and its id | TRUE |
Logged in user is not following the entity specified by type and its id | FALSE |
Updated almost 5 years ago