Commit graph

32 commits

Author SHA1 Message Date
jesopo
d5d097d8ee give str(Exception) when webfinger fails 2020-03-08 18:45:15 +00:00
jesopo
142d181048 tolerate a server not having a host-meta 2020-03-08 18:43:49 +00:00
jesopo
a974134472 tolerate fedi servers that present Notes as application/ld+json 2020-01-18 14:02:47 +00:00
jesopo
89e9122128 retooted account should use username, not display name 2019-12-12 05:35:45 +00:00
jesopo
3848d878a4 use fediverse display names when available 2019-12-10 11:45:29 +00:00
jesopo
f62fc8c2a1 show username when a toot is CWed 2019-11-27 15:16:46 +00:00
jesopo
ed775ddbe3 remove parser from utils.http.Request, add Request.soup() 2019-11-26 11:35:56 +00:00
jesopo
6a6e789ec9 add cookies and .json() to utils.http.Response objects 2019-11-25 18:17:30 +00:00
jesopo
7f7a31720c USERAGENT no longer exists 2019-11-25 05:55:22 +00:00
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