-
-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Push status edit messages into open streams #2418
[feature] Push status edit messages into open streams #2418
Conversation
Nice one; I think we will save this for after 0.13.0 so we can try it out on main and tweak it as necessary :) |
Yep, wasn't expecting this to make it into this release - I've tested that it sends messages that look like the Mastodon ones, but I haven't tested it with different clients or anything. Outstanding questions I think are:
|
great work here! nice one :). regarding 1) honestly i quite like how it is currently, as you say making a singular function share logic for both makes it a bit more complicated now, and in the future if there's further diversion it could start to get a bit hairy :P. and for 2), as you say that's a bit of an awkward situation adding in a mention to an edited post, i think that's something we can safely leave for now as it's a bit of a niche situation. also, if anyone further replies after that the person will still get notified for any new mentions of themselves. we can probably save that functionality until we actually support full edited statuses logic including revision history. for the code in the PR itself, i don't actually have any comments on it myself! looks great. for bonus points if you feel up to it a test to trigger an update notification (which you'd need to add in |
only one comment on the added test, otherwise looks all good to me @Sentynel 👌 |
Thank you! |
Description
When a status update message comes in (i.e. a status is edited), push the appropriate status.update message to any connected streams that would have received the original status.
Slightly WIP still but does work.
closes #2417
Checklist
Please put an x inside each checkbox to indicate that you've read and followed it:
[ ]
->[x]
If this is a documentation change, only the first checkbox must be filled (you can delete the others if you want).
go fmt ./...
andgolangci-lint run
.