Skip to content

Commit

Permalink
revert default expiration time to 7 days
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed May 1, 2024
1 parent 505711a commit abd372b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions README-Mastodon.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ Once you have an account, please do the following:
![image](https://user-images.githubusercontent.com/15090643/208438462-b40cc847-f36c-4db7-bacb-54a68fae2cff.png)
![image](https://user-images.githubusercontent.com/15090643/208438987-3e1fd9c2-5ce9-46c0-92e9-20bb78f55a8c.png)

Note -- if you post lots of traffic to Mastodon, please consider adding an Automatic Post Deletion time of 1 week.
This will help manage storage costs for the operator of the Mastodon server!
Note -- the `MASTODON_RETENTION_TIME` parameter in `planefence.config` determines the retention time (in days) of any Toots you send to Mastodon. This will help manage storage costs for the operator of the Mastodon server! Note - the default expiration time if the parameter is omitted, is `7` (days). If you want your Toots to never expire, please set the parameter value to `off` or `0`. However, please be cognizant that your Mastodon Server operator is probably paying for disk storage out of their own pocket - so please leave this retention time as short as you can afford.

## Configuring Planefence to use Mastodon

Expand Down
2 changes: 1 addition & 1 deletion rootfs/scripts/masto_expire.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ source /scripts/common
ACCESS_TOKEN=$MASTODON_ACCESS_TOKEN
INSTANCE_URL="https://$MASTODON_SERVER"

RETENTION_DAYS="${MASTODON_RETENTION_TIME:-14}"
RETENTION_DAYS="${MASTODON_RETENTION_TIME:-7}"

delete_toot() {
local toot_id="$1"
Expand Down

0 comments on commit abd372b

Please sign in to comment.