Skip to content
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

Propagate moderation actions #5

Open
Lacerkage opened this issue Sep 27, 2022 · 1 comment
Open

Propagate moderation actions #5

Lacerkage opened this issue Sep 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Lacerkage
Copy link
Owner

Lacerkage commented Sep 27, 2022

If a thread gets deleted or edited on the imageboard, the respective status published by the bot should reflect those changes.

@loynet
Copy link

loynet commented Sep 28, 2022

From my current understanding, events (log entries) have to be fetched on a board basis. This is potentially problematic since the bot would have to fetch the logs from all boards that have been the source of, at least, one status.
Furthermore, the log related endpoints (1 and 2) bring additional challenges. The first only provides the number of entries per day and the second, which returns a somewhat detailed list of events, does it by date (e.g. GET https://ptchan.org/i/logs/09-27-2022.json returns a list of /i/ events that happened yesterday).

TLDR: To know what has to be propagated, one must fetch logs from the current day in every board that has been the source of a status* and this has to be performed at least once per day (which is not ideal for obvious reasons, we should try to propagate changes every 30 minutes or so) in order safely ignore previous days changes.
*Threads are ephemeral in imageboards and it’s probably okay to assume that if a thread has not been deleted after t time, there’s nothing wrong with it. Maybe we can watch only “fresh” status.

... I don’t see how one could implement a such solution without persistent memory of threads (their id, board, and probably more) that have been posted.

@Lacerkage Lacerkage changed the title Propagate deletion and edition of threads Propagate moderation actions Sep 29, 2022
@Lacerkage Lacerkage added the enhancement New feature or request label Oct 2, 2022
@Lacerkage Lacerkage linked a pull request Oct 2, 2022 that will close this issue
@Lacerkage Lacerkage removed a link to a pull request Oct 2, 2022
@Lacerkage Lacerkage linked a pull request Oct 5, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants