Document the deprecation of WCF.User.ObjectWatch.Subscribe
authorMarcel Werk <burntime@woltlab.com>
Tue, 16 Aug 2022 11:35:52 +0000 (13:35 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 16 Aug 2022 11:35:52 +0000 (13:35 +0200)
docs/migration/wsc55/deprecations_removals.md
docs/migration/wsc55/javascript.md

index 9fa12f747ed3bfda5de707f36891c046808a2c89..74afe07a374f0cfe3228c7753b75f0e1805e143c 100644 (file)
@@ -44,6 +44,8 @@ With version 6.0, we have deprecated certain components and removed several othe
 
 ### JavaScript
 
+- `WCF.User.ObjectWatch.Subscribe` ([WoltLab/WCF#4962](https://github.com/WoltLab/WCF/pull/4962))
+
 ### Database Tables
 
 ### Templates
index 16c03bf73c151963a56fa5370d7eed380e0b60f2..9fb0c977c3c8ce3e01710852685e20411853cde1 100644 (file)
@@ -3,3 +3,14 @@
 ## Minimum requirements
 
 The ECMAScript target version has been increased to es2019 from es2017.
+
+## Subscribe Button (WCF.User.ObjectWatch.Subscribe)
+
+We have replaced the old jQuery-based `WCF.User.ObjectWatch.Subscribe` with a more modern replacement `WoltLabSuite/Core/Ui/User/ObjectWatch`.
+
+The new implementation comes with a ready-to-use template (`__userObjectWatchButton`) for use within `contentInteractionButtons`:
+```smarty
+{include file='__userObjectWatchButton' isSubscribed=$isSubscribed objectType='foo.bar' objectID=$id}
+```
+
+See [WoltLab/WCF#4962](https://github.com/WoltLab/WCF/pull/4962/) for details.