frappe.desk.like._toggle_like (doctype, name, add, user=None)
Same as toggle_like but hides param user from API
frappe.desk.like.add_comment (doctype, name)
No docs
frappe.desk.like.remove_like (doctype, name)
Remove previous Like
Public API
/api/method/frappe.desk.like.toggle_like
frappe.desk.like.toggle_like (doctype, name, add=False)
Adds / removes the current user in the __liked_by property of the given document.
If column does not exist, will add it in the database.
The _liked_by property is always set from this function and is ignored if set via
Document API
Parameters:
doctype - DocType of the document to likename - Name of the document to likeadd - Yes if like is to be added. If not Yes the like will be removed.