Andrei Prigorshnev
be2eb3df44
FIX: user got notified about a mention inside a chat message quote ( #24229 )
...
When quoting a chat message in a post, if that message contains a mention,
that mention should be ignored. But we've been detecting them and sending
notifications to users. This PR fixes the problem. Since this fix is for
the chat plugin, I had to introduce a new API for plugins:
# We strip posts before detecting mentions, oneboxes, attachments etc.
# We strip those elements that shouldn't be detected. For example,
# a mention inside a quote should be ignored, so we strip it off.
# Using this API plugins can register their own post strippers.
def register_post_stripper(&block)
end
2023-11-08 23:13:25 +04:00
..
2023-03-02 08:10:16 +10:00
2023-11-03 09:05:29 +08:00
2023-01-09 11:49:28 +00:00
2023-09-15 16:31:29 -03:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-05-15 09:54:54 +02:00
2023-06-01 10:00:01 +10:00
2023-01-09 11:49:28 +00:00
2023-03-08 10:39:12 +10:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-10-26 16:34:23 +03:00
2023-03-10 13:45:01 +08:00
2023-09-12 09:51:49 +08:00
2023-05-18 12:46:44 +03:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-02-06 18:24:12 +00:00
2022-07-28 10:27:38 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-09-12 15:31:26 -03:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-25 13:50:45 +02:00
2023-04-13 15:38:54 +08:00
2023-08-29 18:41:33 -03:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2022-07-28 10:27:38 +08:00
2023-01-09 11:49:28 +00:00
2023-05-24 09:57:46 +02:00
2023-11-07 11:59:40 +08:00
2023-03-01 15:35:21 +11:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-16 12:44:35 +10:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-08-01 14:44:39 +10:00
2023-01-09 11:49:28 +00:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-09-05 11:17:18 +05:30
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2022-07-28 10:27:38 +08:00
2023-10-20 17:56:50 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-10-18 23:48:01 +00:00
2023-11-08 23:13:25 +04:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-08-01 00:48:40 +02:00
2023-11-02 08:10:15 +03:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-03-02 16:40:53 +01:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-10-27 13:05:41 +10:00
2023-01-09 11:49:28 +00:00
2023-05-03 09:54:54 +02:00
2023-09-06 10:57:30 +08:00
2023-01-09 11:49:28 +00:00
2023-06-26 11:41:52 +02:00
2023-08-17 12:33:52 +10:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-04-05 10:52:18 +10:00
2023-10-19 14:23:41 +10:00
2023-08-17 14:46:24 +10:00
2023-01-09 11:49:28 +00:00
2023-10-17 22:04:56 +03:00
2023-06-13 22:02:21 +02:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-10-16 23:53:02 +00:00
2023-06-27 14:49:34 +10:00
2023-11-02 08:10:15 +03:00
2023-01-09 11:49:28 +00:00
2023-11-02 08:10:15 +03:00
2023-11-02 08:10:15 +03:00
2023-03-14 13:11:45 -05:00
2023-01-09 11:49:28 +00:00
2023-02-13 12:39:45 +08:00
2022-07-28 10:27:38 +08:00
2023-06-13 22:02:21 +02:00
2023-06-13 11:08:08 -06:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 11:49:28 +00:00
2023-05-31 19:32:06 +05:30
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-10-16 10:34:35 -04:00
2023-01-20 09:50:24 +08:00
2023-06-13 22:02:21 +02:00
2023-01-09 11:49:28 +00:00
2023-10-09 07:24:10 +08:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-07-14 16:52:39 +08:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-10-20 12:48:06 +00:00
2023-10-17 14:08:21 +10:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2022-07-28 10:27:38 +08:00
2023-01-09 11:49:28 +00:00
2023-06-01 10:00:01 +10:00
2023-04-24 20:36:40 +00:00
2023-07-28 12:53:46 +01:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-06-26 11:41:52 +02:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-07-07 04:52:10 +03:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-03-01 12:23:29 +08:00
2023-09-12 15:31:17 -03:00
2023-09-12 15:31:17 -03:00
2023-10-18 11:38:17 +10:00
2023-07-18 11:50:31 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-01-09 11:49:28 +00:00
2023-08-15 12:12:22 -03:00
2023-01-09 11:49:28 +00:00
2023-05-06 07:15:33 +10:00
2023-01-09 11:49:28 +00:00
2023-10-09 03:35:31 +00:00