fix: duplicate follow

This exists in `doc.insert()` not need to add it here too
This commit is contained in:
Ankush Menat 2025-05-26 14:43:06 +05:30
parent c2d2fda212
commit 9920c8d033

View file

@ -1469,11 +1469,6 @@ class Document(BaseDocument, DocRef):
if version.update_version_info(doc_to_compare, self):
version.insert(ignore_permissions=True)
if not frappe.flags.in_migrate:
# follow since you made a change?
if frappe.get_cached_value("User", frappe.session.user, "follow_created_documents"):
follow_document(self.doctype, self.name, frappe.session.user)
@staticmethod
def hook(f):
"""Decorator: Make method `hookable` (i.e. extensible by another app).