XF 2.2 merge user join date

Martyn

Active member
our forums fairly old and a lot of the time people forget they had an account or forget emails etc

my question is when merging users do they keep the oldest date or the newest date?

e.g

Bob Joined 2021
Bobbob joined 2022,

I merge bob into bobbob, would it have 2021 or 2022?

regards
Martyn
 
Last edited:
Bob Joined 2021
Bobbob joined 2022,

I merge bob into bobbob, would it have 2021 or 2022?

It would be 2021, it's always the min value of source and target:
PHP:
$this->target->register_date = min($this->target->register_date, $this->source->register_date);

Though it does not get adjusted to be older than timestamp of the oldest post after merge.
 
just tested on the Xenforo demo (forgot about this), it did although it only worked in minutes, it did work, so it took the older date.

thanks, guys.
 
Back
Top Bottom