Use link_token when tracking and rendering links

This commit is contained in:
Amine Ben hammou
2019-09-03 12:16:49 +01:00
committed by Jack Kitterhing
parent 042213d5aa
commit 3ea9c99090
17 changed files with 43 additions and 34 deletions

View File

@ -17,7 +17,7 @@ class Url {
$preview = false
) {
if ($subscriber instanceof SubscriberModel) {
$subscriber->token = SubscriberModel::generateToken($subscriber->email);
$subscriber->token = $subscriber->getLinkToken();
}
switch ($type) {
case self::TYPE_ARCHIVE: