Dan Ungureanu
ec3758b573
FIX: Make PostRevisor more consistent ( #14841 )
...
* FIX: Preserve field types when updating revision
When a post was edited quickly twice by the same user, the old post
revision was updated with the newest changes. To check if the change
was reverted (i.e. rename topic A to B and then back to A) a comparison
of the initial value and last value is performed. If the check passes
then the intermediary value is dismissed and only the initial value and
the last ones are preserved. Otherwise, the modification is dismissed
because the field returned to its initial value.
This used to work well for most fields, but failed for "tags" because
the field is an array and the values were transformed to strings to
perform the comparison.
* FIX: Reset last_editor_id if revision is reverted
If a post was revised and then the same revision was reverted,
last_editor_id was still set to the ID of the user who last edited the
post. This was a problem because the same person could then edit the
same post again and because it was the same user and same post, the
system attempted to update the last one (that did not exist anymore).
2021-11-09 16:29:37 +02:00
..
2021-10-21 19:43:26 +03:00
2019-10-02 14:01:53 +10:00
2021-06-25 11:34:51 +02:00
2021-10-11 20:57:42 +03:00
2021-09-10 12:59:51 +10:00
2021-08-30 12:31:22 +01:00
2021-10-13 12:53:23 +03:00
2019-10-02 14:01:53 +10:00
2021-10-29 20:46:25 +02:00
2019-10-02 14:01:53 +10:00
2021-10-07 12:31:42 +01:00
2020-05-15 14:23:27 +08:00
2021-07-19 13:54:19 +08:00
2019-10-14 12:57:33 +05:30
2019-04-30 10:27:42 +10:00
2020-04-08 12:42:28 +10:00
2021-10-04 15:40:35 -03:00
2021-08-25 09:37:07 +08:00
2021-10-25 10:24:21 +02:00
2020-03-11 13:30:45 +00:00
2021-09-22 07:59:45 +10:00
2021-09-02 14:55:38 -04:00
2020-07-24 17:19:21 +08:00
2021-05-21 11:43:47 +10:00
2019-04-30 10:27:42 +10:00
2021-01-04 10:34:44 +01:00
2019-10-01 12:04:39 -04:00
2021-08-24 10:46:28 +03:00
2019-04-30 10:27:42 +10:00
2021-10-19 17:12:29 +05:30
2021-03-22 19:41:42 +02:00
2019-10-02 14:01:53 +10:00
2019-10-02 14:01:53 +10:00
2021-08-10 10:25:15 -04:00
2021-06-22 13:00:04 -05:00
2019-10-02 14:01:53 +10:00
2021-02-23 16:20:59 -05:00
2021-10-06 17:42:04 +03:00
2021-10-25 10:24:21 +02:00
2021-06-02 12:43:34 -04:00
2021-11-09 17:20:09 +11:00
2019-12-03 10:05:53 +01:00
2020-03-10 22:13:17 +01:00
2021-05-21 11:43:47 +10:00
2021-04-05 20:31:42 +05:30
2019-04-30 10:27:42 +10:00
2020-12-14 17:49:37 +02:00
2019-04-30 10:27:42 +10:00
2019-04-30 10:27:42 +10:00
2019-05-28 11:33:08 +10:00
2019-05-07 13:12:20 +10:00
2021-11-05 14:20:14 -03:00
2019-04-30 10:27:42 +10:00
2019-04-30 10:27:42 +10:00
2019-04-30 10:27:42 +10:00
2021-10-29 11:46:52 -04:00
2019-04-30 10:27:42 +10:00
2021-10-14 22:37:53 -03:00
2019-04-30 10:27:42 +10:00
2021-09-17 10:41:34 +02:00
2021-05-21 11:43:47 +10:00
2021-05-21 11:43:47 +10:00
2021-01-20 21:32:22 +01:00
2021-05-21 11:43:47 +10:00
2019-04-30 10:27:42 +10:00
2019-10-02 14:01:53 +10:00
2021-05-21 11:43:47 +10:00
2019-04-30 10:27:42 +10:00
2021-11-02 14:34:51 -04:00
2021-05-21 11:43:47 +10:00
2021-10-29 20:15:10 +02:00
2019-04-30 10:27:42 +10:00
2019-06-07 01:26:06 +02:00
2021-05-21 11:43:47 +10:00
2021-09-15 10:16:54 +10:00
2021-11-08 09:33:41 +08:00
2019-10-02 14:01:53 +10:00
2021-06-30 15:51:35 +03:00
2021-11-09 16:29:37 +02:00
2021-08-27 16:26:06 +01:00
2021-10-29 17:53:09 +03:00
2021-08-11 08:39:25 +10:00
2019-05-07 13:12:20 +10:00
2021-05-19 16:04:35 +04:00
2019-11-27 16:11:49 +11:00
2021-09-03 13:15:58 +05:30
2019-10-02 14:01:53 +10:00
2021-11-08 09:16:38 +10:00
2021-07-07 18:57:42 +02:00
2021-07-07 18:57:42 +02:00
2019-05-07 13:12:20 +10:00
2021-06-21 11:06:58 +08:00
2021-11-01 10:14:47 +08:00
2019-11-11 11:18:12 +11:00
2019-05-13 09:31:32 +08:00
2021-07-07 18:57:42 +02:00
2021-10-04 15:40:35 -03:00
2021-05-21 11:43:47 +10:00
2020-07-27 10:23:54 +10:00
2019-08-06 11:26:54 +01:00
2020-09-22 10:17:52 +10:00
2021-05-24 18:13:30 +10:00
2021-05-03 09:21:35 +02:00
2021-09-16 07:58:53 +05:30
2021-06-15 17:25:06 +02:00
2021-01-25 12:04:27 +01:00
2021-10-28 11:59:46 +05:30
2020-03-10 22:13:17 +01:00
2021-10-12 10:25:03 +05:30
2021-07-16 15:25:49 -03:00
2021-10-18 14:47:47 +08:00
2021-08-05 12:56:15 +08:00
2019-10-02 14:01:53 +10:00
2019-04-30 10:27:42 +10:00
2021-07-05 14:17:31 +08:00
2021-06-08 13:25:51 -04:00
2021-08-10 17:25:11 +05:30
2021-10-27 14:41:24 +04:00
2020-10-12 22:54:56 +02:00