@frappe.whitelist()
def toggle_like(doctype, name, add=False):
 _toggle_like(doctype, name, add)

@ frappe . whitelist ( ) def toggle_like ( doctype , name , add = False ) : _toggle_like ( doctype , name , add )
adds / removes the current user in the __liked_by property of the given document .