enable renamed links

This commit is contained in:
Danilo Reyes
2026-02-28 23:19:53 -06:00
parent bda8105928
commit 766eca4a2f

View File

@@ -360,6 +360,14 @@ def rename_link(
""", """,
(new_url, new_norm, get_site(new_url), row["id"]), (new_url, new_norm, get_site(new_url), row["id"]),
) )
conn.execute(
"""
UPDATE links
SET enabled = 1, disabled_at = NULL, requires_revision = 0
WHERE id = ?
""",
(row["id"],),
)
add_history( add_history(
conn, conn,
user_name, user_name,