jesopo
84ec6d812f
format multi-line toots on a single line using things like double space
2019-10-09 16:44:54 +01:00
jesopo
44a635b708
prefer url
over id
as it's usually a more user-friendly url
2019-10-08 16:07:35 +01:00
jesopo
50d1eb6b8c
combine find_setting() and find_setting_prefix() on user/channel/server/bot
2019-10-07 12:46:52 +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
3fa71a75af
serve pub key, not cert
2019-09-25 10:43:39 +01:00
jesopo
b18586ba51
don't .strip() tls cert
2019-09-25 10:32:54 +01:00
jesopo
e2ec8afbea
_ap_url already array-ifies
2019-09-25 10:17:56 +01:00
jesopo
bb2590734b
add missing "import urllib.parse" to ap_utils.py
2019-09-23 11:28:14 +01:00
jesopo
8a3e480ef5
bitbot is a Service (bot), not a Person
2019-09-20 11:44:23 +01:00
jesopo
04d75ec414
make a better "random ID url" function
2019-09-20 11:39:46 +01:00
jesopo
51b8429278
make Accept ID (and Follow ID) our own domain
2019-09-20 10:53:58 +01:00
jesopo
d75d751295
update _ap_*_url() functions to use path-args
2019-09-20 10:46:49 +01:00
jesopo
1b3ee8e336
use path-arg variables for AP urls, not get params
2019-09-20 10:42:08 +01:00
jesopo
8f38223284
fedi http headers should be PascalCase
2019-09-19 15:28:58 +01:00
jesopo
ea1698499f
through error when fediverse server is configured but crypto is missing
2019-09-18 10:18:49 +01:00
jesopo
9d4830dd88
first
is now a Response object, not a dict
2019-09-17 18:05:39 +01:00
jesopo
14d28d836b
'responsedata' -> 'response.data'
2019-09-17 18:04:52 +01:00
jesopo
441a58125a
Show error when actor.load() fails
2019-09-17 17:41:40 +01:00
jesopo
f84b48adbe
pass full Response from ap_utils.activity_request, use it for Actor 404
2019-09-17 17:41:15 +01:00
jesopo
6959bba5f3
move getting private_key/our_actor to __init__ (for main thread)
2019-09-16 15:49:03 +01:00
jesopo
ec4501c018
pass exports
to ap_server.py
2019-09-16 14:23:06 +01:00
jesopo
f12551532f
'theading' -> 'threading'
2019-09-16 14:19:52 +01:00
jesopo
69032ea476
push inbox POSTs on to a background thread
2019-09-16 14:18:58 +01:00
jesopo
cc65892586
Revert "push inbox PUSHes on to background thread"
...
This reverts commit 18613311f9
.
2019-09-16 13:58:13 +01:00
jesopo
18613311f9
push inbox PUSHes on to background thread
2019-09-16 13:54:07 +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
050bf0a848
use json_body=True
for ActivityPub requests
2019-09-16 10:57:46 +01:00
jesopo
9d17710d6d
PKCS1v15 is a function
2019-09-16 10:53:10 +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
5800fef4c9
use PKCS1v15 for HTTP signatures
2019-09-15 16:31:53 +01:00
jesopo
433e3cdcfb
data
-> post_data
2019-09-15 15:21:26 +01:00
jesopo
4f1f65919d
dict()ify inbox headers
2019-09-15 14:31:36 +01:00
jesopo
ca68b27ccd
actually pass signature and related headers to activity_request()
2019-09-15 14:27:34 +01:00
jesopo
06acbcfb98
readd accidentally lost ")"
2019-09-15 12:23:19 +01:00
jesopo
b22ab564be
actually use method
arg on activity_request()
2019-09-15 12:18:03 +01:00
jesopo
980a407ebb
change follow accept/followback logic to involve our own actor
2019-09-15 12:17:24 +01:00
jesopo
4b42549b55
don't pass actor to Inbox ctor but pass sending actor to .send
2019-09-15 12:15:58 +01:00
jesopo
4caef45299
add missing uuid import to ap_server.py
2019-09-15 11:58:24 +01:00
jesopo
7c6f5c51d3
pass Actor to Inbox
2019-09-15 11:57:42 +01:00
jesopo
676bb53f43
'ap_utils.request' -> 'ap_utils.activity_request'. dont pass privkey
2019-09-15 11:56:03 +01:00
jesopo
f5ab4f690a
pass whole PrivateKey object to ap_security, not just the key
2019-09-15 11:54:07 +01:00
jesopo
7a1eee7990
'security' -> 'ap_security'
2019-09-15 11:53:01 +01:00
jesopo
665a7a8d1a
key_id -> key.id, missing urllib import
2019-09-15 11:51:51 +01:00
jesopo
95d67199ff
Inbox.send should have a self
param
2019-09-15 11:49:53 +01:00