Commit Graph

24 Commits

Author SHA1 Message Date
codl 8c750d3207 remove fav/reblog counters. they were never used 2021-05-14 19:46:59 +02:00
codl da7d64acbd
set user agent on mastodon.py requests 2019-07-11 22:33:14 +02:00
codl a68a673925
mastodon: stop before hitting the rate limit 2019-03-11 16:35:43 +01:00
codl 6d6184f3d8
disable autoflush in refresh_posts, fixing deadlocks. closes GH-19 2019-03-11 03:10:32 +01:00
codl 4054ebfffd
Merge branch 'master' into fix-refresh 2019-02-24 16:35:44 +01:00
codl d5e0b43c9e
fix: posts not getting refreshed
turns out i was not touching updated_at, so i'd always be refreshing
the same posts unless one of them actually changed

this is embarassing, there are posts in the DB that haven't been
refreshed since 2017
2019-02-24 16:28:59 +01:00
codl a6c5361138
more robust fetching. closes #13
this also refactors libforget so neither the twitter or mastodon lib
insert posts directly
2019-02-24 15:40:41 +01:00
codl 649b68793c
libforget mastodon: same thing. raise temporaryerror if no access 2019-02-24 13:11:31 +01:00
codl 4c7a919079
show user's top known instances on the login page 2018-05-08 00:06:36 +02:00
codl 447923b1f1
add mechanism for keeeping track of a user's instances 2018-05-07 23:50:37 +02:00
codl c42b0f7f87
move popular instances query to libforget.mastodon 2018-05-07 23:49:28 +02:00
codl 9696b6e448
fix revoked tokens not being found because of localised error messages 2018-01-03 12:24:35 +01:00
codl 3c6a9e4158
track which posts are reblogs 2017-12-27 21:23:13 +01:00
codl 132007f91f
store fav/reblog count. first step towards #7 2017-12-27 20:49:19 +01:00
codl 75e5f52871
make sure to convert mastodon post IDs to integers
mastodon v2.0.0 changed IDs to be snowflake-like and returns them as
strings in the API
2017-10-18 21:06:28 +02:00
codl 1b07bf1020
codacy 2017-09-24 23:49:08 +02:00
codl 6fd1d6979b
remove unused iso8601 req 2017-09-24 23:22:19 +02:00
codl 7967cc686c
maybe if i cache mastodon api instances i can avoid 50% of calls?
im just throwing shit at the wall here im running out of ideas

this could also fuck everything up idk let's see

uhh issue #10
2017-09-21 13:54:41 +02:00
codl 0e185c67a5
ahhhhh 2017-09-21 07:26:01 +02:00
codl eb6fcd700a
Revert "make sure post id is an actual integer"
This reverts commit e9653f34be.
2017-09-21 07:24:18 +02:00
codl 1123d44b30
Revert "protect against invalid posts"
This reverts commit 4e5c2b1f9a.
2017-09-21 07:19:35 +02:00
codl e9653f34be
make sure post id is an actual integer 2017-09-21 07:19:13 +02:00
codl 4e5c2b1f9a
protect against invalid posts
(???) i dont quite understand why i have to do this but some server is
throwing posts at me without an id or a status or much of anything so..
2017-09-21 06:50:01 +02:00
codl c135dc793e
rename lib to libforget 2017-09-20 23:04:44 +02:00