Closed randomouscrap98 closed 1 year ago
This ended up being kind of impossible, as system messages would either have to use the module message system, breaking the assumption that ids are always linearly increasing, or i'd have to make some special system message that auto-inserts itself into requests (extremely non-trivial). So, we instead went with a basic message edit, adding the metadata to the first and last of a group of rethreads.
When someone rethreads, insert a module message where the module is "system" (and you'll need to reserve the "system" name for modules) that states how many messages were moved and between what times. You'll simply take the first and last message as the times to display. The module message sender will be the person doing the rethreading, and you probably don't need to include their name in the message (not sure though). Finally, the contentid for the room to send the module message in should be the original contentid of the FIRST comment, even if comments were rethreaded from multiple rooms (I'll make sure people know this is how it functions and encourage them to rethread only from single rooms, OR make the endpoint limit it...)