Commit graph

28 commits

Author SHA1 Message Date
jesopo
49d9cbdb87 exports.get_one() -> exports.get() 2020-03-08 14:14:00 +00:00
jesopo
8a6270fc97 cryptography is in requirements.txt; we dont need to check for it 2020-02-20 15:12:00 +00:00
jesopo
a974134472 tolerate fedi servers that present Notes as application/ld+json 2020-01-18 14:02:47 +00:00
jesopo
47f7c7a595 tolerate fediverse Notes without "cc"s 2020-01-18 14:02:16 +00:00
jesopo
8008532b30 note should be jsonified 2019-11-28 07:31:06 +00:00
jesopo
f62fc8c2a1 show username when a toot is CWed 2019-11-27 15:16:46 +00:00
jesopo
8bb20bcb17 default first_item to None or it doesn't exist when there's no toots 2019-11-26 14:31:22 +00:00
jesopo
8ccbeb54d7 Show more fediverse errors to the end user 2019-11-14 10:53:34 +00:00
jesopo
1c02de8a69 change !fedi "!" arg to still show CW but also show content of Note 2019-10-18 15:54:36 +01:00
jesopo
20a115e71d add "!" arg to !fedi, to denote "dont show content warning" 2019-10-18 15:43:17 +01:00
jesopo
3f4eebf85b show ,fedi latest-tweet also if it's a self-reply 2019-10-15 15:24:57 +01:00
jesopo
f739064d10 show first toot if it's a boost, fix Note boost formatting 2019-10-15 15:13:28 +01:00
jesopo
472b5ba9f0 support !fedi with a URL to a Note 2019-10-04 13:06:29 +01:00
jesopo
c6efea3971 non-CWed pleroma posts have content as "", not null 2019-09-25 17:12:55 +01:00
jesopo
6199086dc5 pleroma outbox items don't have an inReplyTo when it's null 2019-09-25 17:11:16 +01:00
jesopo
67cd14da5a only fist first_item once 2019-09-25 16:14:48 +01:00
jesopo
5923602f0a make fediverse module rely on REST API
I didn't want to do this unless we had to but Mastodon is introducing requirming
signed requests soon, so even if a user doesn't use bitbot as an instance, we'll
still need to be able to serve Actor (and key) over the REST API
2019-09-25 16:11:57 +01:00
jesopo
13b21b205d only show non-replies with ,fedi 2019-09-25 16:11:18 +01:00
jesopo
ea1698499f through error when fediverse server is configured but crypto is missing 2019-09-18 10:18:49 +01:00
jesopo
441a58125a Show error when actor.load() fails 2019-09-17 17:41:40 +01:00
jesopo
ec4501c018 pass exports to ap_server.py 2019-09-16 14:23:06 +01:00
jesopo
69032ea476 push inbox POSTs on to a background thread 2019-09-16 14:18:58 +01:00
jesopo
cefbbe7c5f return content warning from ap_utils.format_note and show it
closes #118
2019-09-16 11:10:49 +01:00
jesopo
55d5692856 refactor AP Note stringifying out to ap_utils.py 2019-09-16 10:51:59 +01:00
jesopo
f8d24bc422 throw on_start() exceptions when tls key/certificate are not present 2019-09-15 17:11:45 +01:00
jesopo
89072de213 ap_server needs ap_utils import, pass bot instance to it too 2019-09-15 11:19:50 +01:00
jesopo
71896f8081 move AP server event/exports to __init__.py 2019-09-15 11:06:00 +01:00
jesopo
54ee1b3594 re-merge fediverse an fediverse_server, so they can share utils 2019-09-15 10:43:46 +01:00