question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Expiration Date to Posts

See original GitHub issue

We need to add expireAt to the Post model and the Post endpoints.

In a future ticket, we will add filtering on the backend to filter out expired posts before serving them to the FE.

When editing the post, the expireAt should be referenced from the time the person is editing the post, not the original time of posting.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
dfranckscommented, Apr 20, 2020

That makes sense, thanks Robin. Updated the ticket

2reactions
robinv85commented, Apr 20, 2020

I think the backend will apply filters based on query params that are sent by the frontend? Well that makes more sense to me anyway… maybe I didn’t understand the requirements exactly, haven’t looked at the designs for the feed in detail yet. ( in this case, expired looks like a default that should not be shown, similar to archived / soft delete )

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Enable Post Expiration Dates in WordPress - ThemeIsle
If you want a particular piece of content to expire, the first thing you have to do is tick that option and then...
Read more >
How to Expire Posts or Partial Post Content in WordPress
First, check the box next to the 'Enable Post Expiration' option. Then, choose the date and time when you want this post to...
Read more >
How to Set Expiration Dates for Posts in WordPress
Log into your WordPress Dashboard · Click Plugins and search for Post Expirator · Install and Activate the plugin · Click Posts ·...
Read more >
How to Set an Expiration Date on Post Content in WordPress
Go to any existing post or create a new one. On the right-hand side, locate the Post Expirator box. By default, it ...
Read more >
PublishPress Future: Automatically Unpublish WordPress Posts
PublishPress Future allows you to place automatically show the expiry date inside your articles. The expiry will be added at the bottom of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found