Commit graph

23 commits

Author SHA1 Message Date
jesopo
4d30263315 give bitbot a unique User-Agent
closes #206
2019-11-20 14:42:34 +00:00
jesopo
8ccbeb54d7 Show more fediverse errors to the end user 2019-11-14 10:53:34 +00:00
jesopo
2642bd7dac show when a fediverse Note is nothing but an attachment 2019-11-04 13:19:37 +00:00
jesopo
516884acb8 only .decompose() when it's an empty and unknown tag 2019-11-04 12:51:24 +00:00
jesopo
62781badc4 better line normalisation for fediverse Activities 2019-11-04 11:18:34 +00:00
jesopo
8831724af0 'element.contents' -> 'element.children' for consistency 2019-10-31 15:18:45 +00:00
jesopo
5d08a496a4 use lxml for parsing fedi Notes. html.parse is bad and unpredictable 2019-10-31 15:17:39 +00:00
jesopo
c4c076137d fallback ActivityPub data encoding to utf8 2019-10-26 22:43:11 +01:00
jesopo
fa97f12689 support AP Notes with content outside of HTML tags (e.g. pleroma) 2019-10-15 16:44:28 +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
af1fd37003 actually explicitly strip "unknown" html tags from fedi notes 2019-10-14 10:46:15 +01:00
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
472b5ba9f0 support !fedi with a URL to a Note 2019-10-04 13:06:29 +01:00
jesopo
bb2590734b add missing "import urllib.parse" to ap_utils.py 2019-09-23 11:28:14 +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
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
55d5692856 refactor AP Note stringifying out to ap_utils.py 2019-09-16 10:51:59 +01:00
jesopo
433e3cdcfb data -> post_data 2019-09-15 15:21:26 +01:00
jesopo
ca68b27ccd actually pass signature and related headers to activity_request() 2019-09-15 14:27:34 +01:00
jesopo
b22ab564be actually use method arg on activity_request() 2019-09-15 12:18:03 +01:00
jesopo
54ee1b3594 re-merge fediverse an fediverse_server, so they can share utils 2019-09-15 10:43:46 +01:00