lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

Post scheduling?

Open dessalines opened this issue 6 years ago • 16 comments

Not a priority rn, but as lemmy grows it might be cool to have a post scheduler built in.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

dessalines avatar Aug 24 '19 19:08 dessalines

This can be done in clients.

Nutomic avatar Jan 15 '23 19:01 Nutomic

This one should stay open, because we can use Lemmy's scheduler to do this, and possibly add a column for create date.

A client isn't the place to build a scheduler, because most clients (esp web or mobile apps) won't run continuously in the background.

dessalines avatar Jan 16 '23 16:01 dessalines

LemmySchedule provides this functionality. Closing this because I dont see any reason to reimplement functionality in Lemmy which can be done perfectly well through the API.

Nutomic avatar Oct 04 '23 08:10 Nutomic

That scheduling is a continuously running php app that also requires redis. It would be extremely useful to have this built into lemmy, which is the way that it should've gone instead of someone creating another app.

dessalines avatar Oct 04 '23 19:10 dessalines

This is a really weird thing to have an argument about. Scheduling client side would be a nightmare, like how Microsoft Outlook handles emails where you schedule an email for the morning, close your laptop, and then the email doesn't send because your laptop is asleep.

But even then arguing about it through reopening and closing an issue is really weird. Leave the issue open, have a discussion, talk about the pros and cons of putting it in the software, and then make a decision with the community.

snowe2010 avatar Oct 25 '23 06:10 snowe2010

And then marking the most relevant comment in the thread as off-topic. You're really alienating your users and server admins with this. Have the discussion like adults.

snowe2010 avatar Oct 30 '23 03:10 snowe2010

Hey, I was browsing good first issues and I saw this issue and just wanted to give my 2 cents for what it's worth.

I think the problem (what you're arguing on) stems to "what is an elementary feature and what is a pluggable feature". It's like thinking whether a specific library should stay as an external library or be included in the standard library.

Is the ability to schedule posts too specific to be included in the core Lemmy back-end? I don't think so. Scheduling seems a trivial feature that should be built-in and that every instance owner would like to have (imho).

I join @Nutomic though on avoiding to "reimplement" things and I would even say to avoid "bloating" the core back-end and instead work on #3562 to support more modular topologies. My reasoning is that most instance owners probably host those instances without financial support. Maintaining the backend as light-weight as possible while giving instance admin extensibility though server-side plugins if they are ready to pay the infrastructure cost that comes with it seems a better approach imho.

Another possibility would be to ensure those features added to the lemmy core are gated behind a feature flag.

raskyld avatar Nov 02 '23 21:11 raskyld

@raskyld For me its fine to include this directly in the backend. The main question is who will implement it, because dessalines and I are very busy working on higher priority tasks. So if you or another community member implements it, there is no problem merging it as long as the code is clean and passes review.

Nutomic avatar Nov 03 '23 11:11 Nutomic

That seems a good exercice to learn about Lemmy backend and rust in general, I am gonna give it a try!

raskyld avatar Nov 03 '23 11:11 raskyld

Thx! How I'd go about it would be, to do a diesel migration that creates new columns on the post table, with a publish_date and published field, then have a scheduled job that finds all posts that aren't published. Federation of them would be the more difficult part.

dessalines avatar Nov 03 '23 13:11 dessalines

For federation you only need to call this function (and dont forget to send the webmention as well).

Nutomic avatar Nov 03 '23 14:11 Nutomic

I am sorry Im based in CEST and for now I can only work out of business hours but I was wondering why would this be difficult? From my point of view, the post will not be federated and will stay persisted locally in the instance where it is written and scheduled and it would only be spread (federated) once released right?

raskyld avatar Nov 03 '23 15:11 raskyld

Correct

Nutomic avatar Nov 06 '23 10:11 Nutomic

Hey, once I finished my contrib on #4142 I will get to actual rust code with this issue :)

raskyld avatar Nov 10 '23 13:11 raskyld

Any updates on this?

EmilJacobs avatar Jul 04 '24 09:07 EmilJacobs

No one's working on it atm, but its in our milestones.

dessalines avatar Jul 09 '24 13:07 dessalines

Is this feature intended to release with lemmy 0.20.0 or later? Asking because I don't see a milestone for this.

M4rtineski avatar Nov 17 '24 08:11 M4rtineski

Yes, it'll be in 0.20.0

dessalines avatar Nov 17 '24 12:11 dessalines