[feat] Let expires_in from API request overwrite user setting, not the other way arround. #898

Closed
opened 2025-04-08 09:51:39 +00:00 by xarvos · 1 comment

The idea

When I set auto-deletion in my profile, when I create a new post, the expiration will always be the duration in this setting, ignoring the expires_in parameter I pass in the API.

It should be able to overwrite the setting by the API parameters.

The reasoning

While I may want my posts to be ephemeral by default, there are some certain posts that I may want to be up permanently, like posts syndicated from my website for example.
Alternatively, I may want some of my posts to be expired earlier than the set duration.
In these cases, I'd want to be able to overwrite the user setting with the API parameters.

Have you searched for this feature request?

  • I have double-checked and have not found this feature request mentioned anywhere.
  • This feature is related to the Akkoma backend specifically, and not pleroma-fe.
### The idea When I set auto-deletion in my profile, when I create a new post, the expiration will always be the duration in this setting, ignoring the `expires_in` parameter I pass in the API. It should be able to overwrite the setting by the API parameters. ### The reasoning While I may want my posts to be ephemeral by default, there are some certain posts that I may want to be up permanently, like posts syndicated from my website for example. Alternatively, I may want some of my posts to be expired earlier than the set duration. In these cases, I'd want to be able to overwrite the user setting with the API parameters. ### Have you searched for this feature request? - [x] I have double-checked and have not found this feature request mentioned anywhere. - [x] This feature is related to the Akkoma backend specifically, and not pleroma-fe.
Owner

Done in #899

Done in https://akkoma.dev/AkkomaGang/akkoma/pulls/899
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AkkomaGang/akkoma#898
No description provided.