Joel Beckmeyer
e2a18f8888
fix some pleroma errors with async and 500 errors ( #4 )
...
* fix some pleroma errors with async and 500 errors
* add better recovery/handling of HTTP 500
* remove unnecessary else
2023-01-11 06:28:54 +00:00
Kay Faraday
f7cc00e443
fetch_posts.py: remove lots of dead code
2022-12-28 23:07:02 +00:00
Kay Faraday
f58d85635a
fetch_posts.py: support Wordpress ActivityPub plugin
2022-12-28 23:06:23 +00:00
Kay Faraday
0ca511e848
simplify gen.py logic a bit
2022-08-12 00:34:13 +00:00
Kay Faraday
c7c2c6adcf
gen.py: disable posting tracebacks
...
These were kind of doxy for some people and usually weren't helpful anyway.
2022-08-12 00:34:13 +00:00
Kay Faraday
b6b96a8661
Merge pull request 'Reuse client and use client factory' ( #3 ) from PeachyDelight/pleroma-ebooks:trunk into trunk
...
Reviewed-on: #3
2022-06-19 18:14:17 +00:00
PeachyDelight
970903c3c0
Reuse client and use client factory
2022-06-19 04:04:14 +02:00
Kay Faraday
5e50bccd53
deduplicate user-agent setting code
2022-06-19 02:02:32 +00:00
Kay Faraday
bc5e8af32b
Merge pull request 'add textsynth' ( #2 ) from PeachyDelight/pleroma-ebooks:trunk into trunk
...
Reviewed-on: #2
2022-06-19 01:50:52 +00:00
PeachyDelight
879eb32b2d
add textsynth
2022-06-19 03:32:34 +02:00
Kay Faraday
b73526a895
simplify account fetch by removing the WebFinger step
...
Now we fetch the user's profile URL from our home server, skipping the need to WebFinger them
and also supporting instances that don't support http:// connections.
2022-06-15 19:53:43 +00:00
Kay Faraday
61e05de199
Fix limit_length
2022-05-24 04:45:55 +00:00
Kay Faraday
ce6fcbd8b5
gen.py: update contact in error message
2022-02-05 21:42:38 +00:00
Kay Faraday
e747e3c120
update User-Agent
2022-01-08 04:28:04 +00:00
Kay Faraday
94a8b53f28
strip access tokens for ease of use
2022-01-08 04:27:09 +00:00
Kay Faraday
f709bed0e9
update defaults
2022-01-08 04:26:02 +00:00
Kay Faraday
f6a17a25f7
fix for the prev commit
2022-01-01 22:49:40 +00:00
Kay Faraday
547c1a2407
pleroma.py: better _get_logged_in_id error handling
2021-12-10 18:51:02 +00:00
io
766b60c09c
accept pleroma-style empty string CWs ( fix #3 )
2021-09-27 11:17:56 +00:00
io
94949289f0
normalize Pleroman posts without cws ( fix #3 )
2021-09-27 11:17:56 +00:00
io
4492f6685c
remove repeated call to extract_post_content ( #2 )
...
fortunately, extract_post_content returns the same thing when called repeatedly,
so this wasn't a big deal anyway
2021-09-27 11:17:56 +00:00
io
f3014f029b
update README
2021-09-27 11:17:56 +00:00
ioistired
3d393c7577
Merge pull request #2 from TinfoilSubmarine/create-posts-on-first-run
...
Commit on DB object creation to ensure table posts is created
2021-09-27 05:42:46 -05:00
io
7b2faec9ae
fix posting on masto without a reply_to_id
2021-09-21 16:56:04 +00:00
io
c301fd31c5
fix AttributeError in gen.py
2021-09-21 16:55:45 +00:00
io
ade608562e
fix old license header
2021-09-21 13:59:45 +00:00
io
2bea936cf2
fix fetching from masto instances
2021-09-21 13:58:20 +00:00
Joel Beckmeyer
6f0a389050
create table posts if it does not exist
2021-09-17 14:07:32 -04:00
io
da961a0e35
add TODO comment
2021-09-17 06:37:39 +00:00
io
788f8550c7
handle rate limits
2021-09-17 06:35:54 +00:00
io
b906abe2b1
add basic migration support
2021-09-17 06:35:35 +00:00
io
191214dbd6
save some memory by using account handles instead of objects
2021-08-19 10:40:57 +00:00
io
4e16eef4e1
add TODOs
2021-08-17 05:55:47 +00:00
io
5db218e362
forgot to sanitize mentions in output
2021-08-17 05:55:29 +00:00
io
97a2f5de00
a few changes
...
- better error reporting
- fix the program hanging at the end if any of the accounts failed to fetch
- remove trailing semicolon from user agent string
2021-08-13 09:40:20 +00:00
io
9b60540d07
move db_path default to load_config
2021-07-26 06:47:43 +00:00
io
d0965d437b
make third_party.utils.make_toot async
2021-07-26 06:29:20 +00:00
io
4e4619fbe0
markov.py: fix queries to reflect schema changes
2021-07-26 06:24:26 +00:00
io
dce92186f9
config.defaults.json: add db_path key
2021-07-26 06:17:28 +00:00
io
a3348602c1
fetch_posts: add KeyboardInterrupt handling
2021-07-26 06:17:01 +00:00
io
4ba3bb1662
fetch_posts.py: use argparse
2021-07-26 06:04:32 +00:00
io
b8e727cfd4
fetch_posts.py: remove unused import
2021-07-26 06:04:14 +00:00
io
5dcbd4ccfa
add generation_mode to config.defaults.json
2021-07-26 06:03:43 +00:00
io
8be760e8af
broaden .gitignore
2021-07-26 06:03:29 +00:00
io
6b97f6cbff
split requirements.txt into gpt2, markov, and base reqs
2021-07-26 05:45:45 +00:00
io
960061b92b
remove old app.json
2021-07-26 05:35:14 +00:00
io
a78c60ac6f
remove posts.db from git
2021-07-26 05:19:31 +00:00
io
330fdc2809
rewrite fetch_posts.py from scratch
...
now it should be properly async by fetching posts in a separate task and sending them across
a queue to a task that inserts to the DB
2021-07-26 04:59:04 +00:00
io
c22a493dff
license compliance stuff and other changes
...
relicense to AGPLv3
comply with the MPL's file copyleft
some other changes in the direction of supporting GPT-2 which were hard to untangle from the rest of the changes (sorry)
2021-07-26 04:52:44 +00:00
io
944e2fc3a5
use json5 instead lol
...
toml sucks add null when
2021-06-18 10:38:58 +00:00