Servizio per cancellare i messaggi quando superano una certa età. Limita l'account ad un numero massimo di post, cancellando quelli più vecchi. Conserva i vecchi post che contano con un favorito. Imposta e dimentica https://mastodon.uno
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
codl 159c1826d3 removing counters: take two 1 month ago
.github update dependabot settings 3 months ago
assets copyedit on settings form. widened page 9 months ago
components disable archives 1 year ago
libforget removing counters: take two 1 month ago
migrations remove fav/reblog counters. they were never used 1 month ago
routes status check: check redis (closes #120) 3 months ago
static whoops icon.png stayed in static/ 3 years ago
templates remove fav/reblog counters. they were never used 1 month ago
test remove known instances 2 years ago
tools fix post-receive hook again. dumbass 3 years ago
.codacy.yml code quality fixes 2 years ago
.codecov.yml set up .codecov.yml to ignore version.py and also shut up in PRs 3 years ago
.coveragerc test libbrotli 3 years ago
.env store fav/reblog count. first step towards #7 3 years ago
.eslintrc.yml eslint 3 years ago
.gitattributes replace messy version stuff with versioneer 3 years ago
.gitignore add .pytest_cache to gitignore 3 years ago
.travis.yml travis: update python matrix to include 3.9 3 months ago
CHANGELOG.markdown Merge branch 'master' into copyedit 3 months ago
LICENSE add license 3 years ago
MANIFEST.in replace messy version stuff with versioneer 3 years ago
Pipfile Bump flask from 1.0.3 to 1.1.1 1 year ago
Pipfile.lock Bump alembic from 1.5.7 to 1.5.8 2 months ago
Procfile set celery to autoscale from 8 to 64 processes 3 years ago
Procfile.dev Update requirements (#35) 3 years ago
README.markdown update maintained badge 3 months ago
app.py add proxyfix 7 months ago
config.example.py example config: mention twitter callback url 1 year ago
dodo.py known instances: bump instance counter when logging in 2 years ago
forget.example.service add example systemd service file 3 years ago
forget.py split off routes.py 3 years ago
model.py removing counters: take two 1 month ago
package-lock.json Bump rollup from 2.41.5 to 2.42.4 2 months ago
package.json Bump rollup from 2.41.5 to 2.42.4 2 months ago
pytest.ini test libbrotli 3 years ago
requirements-dev.txt Bump alembic from 1.5.7 to 1.5.8 2 months ago
requirements.txt Bump alembic from 1.5.7 to 1.5.8 2 months ago
rollup.config.js fix svelte compile 3 months ago
setup.cfg replace messy version stuff with versioneer 3 years ago
setup.py replace messy version stuff with versioneer 3 years ago
tasks.py simplify (and hand-write) query in refresh_account_with_oldest_post. 5 months ago
version.py update in-tree versioneer 3 months ago
versioneer.py update in-tree versioneer 3 months ago

README.markdown

Forget

User count Maintenance status

Build status Test coverage Code quality

Forget is a post deleting service for Twitter and Mastodon. It lives at https://forget.codl.fr.

Running your own

Requirements

  • Postgresql
  • Redis
  • Python 3.6+
  • Node.js 10+

Set up venv

Setting up a venv will isolate Forget from your system’s libraries and allow you to install dependencies locally as a normal user. It’s not necessary but it is recommended!

$ python -m venv venv
$ source venv/bin/activate

If you’re using zsh or fish as a shell, substitute venv/bin/activate with venv/bin/activate.zsh or venv/bin/activate.fish, respectively.

You will need to “activate” the venv in every new terminal before you can use pip or any python tools included in dependencies (honcho, flask...)

Download and install dependencies

$ pip install -r requirements.txt
$ npm install

Wow!! Exciting

Create and complete config file

Gotta set up those, paths, and stuff.

$ cp config.example.py config.py
$ $EDITOR config.py

Set up database schema

If you haven’t started postgresql yet now would be a great time to do that.

$ createdb forget # if you havent created the DB yet
$ env FLASK_APP=forget.py flask db upgrade

Build static assets

Gonna do it...!

$ doit

Done did it.

Running

The included Procfile will run the app server and the background worker. honcho, a Procfile runner, is included as a dependency:

$ honcho start

The application server will listen on http://127.0.0.1:42157. You’ll want to use your favourite web server to proxy traffic to it.

Development

For development, you may want to use Procfile.dev, which starts flask in debug mode and rebuilds the static assets automatically when they change

$ honcho -f Procfile.dev start

Or you could just look at Procfile.dev and run those things manually. It’s up to you.

You can run the (currently very incomplete) test suite by running pytest. You’ll need redis installed on your development machine, a temporary redis server will be started and shut down automatically by the test suite.

Contact

If you’re having trouble with Forget, or if you’re not having trouble but you just want to tell me you like it, you can drop me a note at @codl@chitter.xyz or codl@codl.fr.

Greetz

Thank you bea, for making ephemeral, inspiring me to make limiter, then this, in an attempt to bring ephemeral with me everywhere.

Thank you to the kind folks who have emailed me to tell me Forget has made their time on social media less stressful. 🌻