Version 6.x.x Source

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: