Commit graph

57 commits

Author SHA1 Message Date
William Pitcock
59f95a7095 webfinger: refactor webfinger() functions
- remove code duplication
- move user lookup to parent with statement
- tighten both user lookup by nickname and activitypub URI with a type constraint
2018-06-13 06:42:27 +00:00
Rachel H
1525a0404b Fix follow errors 2018-06-07 00:39:24 -07:00
William Pitcock
1abf0f3b3e webfinger: use https as default fallback instead of http
realistically, all instances need to be on https anyway to properly federate with all
software
2018-06-06 16:27:14 +00:00
William Pitcock
75cfd9d34d webfinger: fix finding the XRD uri for statusnet instances 2018-05-21 12:41:31 +00:00
William Pitcock
725b05d04a run mix format 2018-05-19 08:48:15 +00:00
William Pitcock
1a250d65af webfinger: only do ld+json on modern json webfinger 2018-05-19 01:28:19 -05:00
William Pitcock
d1f6ecf607 webfinger: interpret application/ld+json links as an alternate to application/activity+json 2018-05-19 01:28:12 -05:00
William Pitcock
cce5a9cb1c webfinger: expose the application/ld+json link alongside the older application/activity+json link 2018-05-19 01:28:03 -05:00
lambda
6c2903d9a1 Merge branch 'feld-warnings' into 'develop'
Clean up warnings

See merge request 
2018-05-06 18:42:31 +00:00
eal
bfad57c7c9 Get rid of unsafe variables. 2018-05-06 09:58:59 +03:00
636f0fa402 Clean up unused aliases and imports 2018-05-04 21:25:31 +00:00
lain
9e6ae44729 Formatting fixes. 2018-04-21 09:43:53 +02:00
lain
4afbef39f4 Format the code. 2018-03-30 15:01:53 +02:00
lain
d2099c849d More Jason changes. 2018-03-27 16:45:38 +02:00
lain
e3a81fe58f Fetch the same data from json webfinger as from xml webfinger. 2018-03-24 14:45:54 +01:00
William Pitcock
4d3af2af71 webfinger: implement json response parsing 2018-03-22 00:36:12 -05:00
William Pitcock
1decd2ecb2 webfinger: attempt to fall back if LRDD template cannot be found 2018-03-22 00:36:01 -05:00
William Pitcock
8aa639a450 webfinger: support JSON output 2018-03-22 00:35:51 -05:00
Mark Felder
96cfc67e05 LRDD, you are special and we love you too 2018-03-19 18:05:53 +00:00
Mark Felder
04395cb9bd Grammar consistency
Most log messages are sentence fragments so make them consistent by
removing periods. Log messages that are expressing urgency with ! or
pending more work with "..." are OK.
2018-03-19 17:31:58 +00:00
lain
dfaddeb765 Use update_and_set cache. 2018-02-25 16:34:24 +01:00
lain
e3629af4da Handle remote update activities. 2018-02-25 16:14:25 +01:00
lain
a7c3ead9e6 Invalidate user after key creation. 2018-02-24 18:23:47 +01:00
lain
1331a39d39 Webfinger: Remove leading @s. 2018-02-23 16:55:12 +01:00
lain
b99eeb2bdf Try to fetch AP user data first. 2018-02-18 12:27:05 +01:00
Roger Braun
52200998c9 Merge branch 'develop' into feature/activitypub 2018-02-11 09:50:55 +01:00
eal
29be70c008 Add remote following of local profiles. 2018-02-02 00:14:05 +02:00
eal
57d413e655 Revert "Revert "Add remote follow path to webfinger.""
This reverts commit fb5aa34092.
2018-01-18 18:42:32 +02:00
eal
fb5aa34092 Revert "Add remote follow path to webfinger."
This reverts commit bc689740f0.
2018-01-18 03:42:09 +02:00
eal
bc689740f0 Add remote follow path to webfinger. 2018-01-18 02:38:02 +02:00
Roger Braun
25118aeef7 Add link to AP address in webfinger. 2017-12-09 15:34:43 +01:00
Thog
59770c3f5c
Fix all compilation warnings 2017-11-19 02:22:07 +01:00
Roger Braun
6dfa62800a Revert "Longer timeouts for user fetching."
Breaks too many tests.

This reverts commit 7de3a65214.
2017-11-07 09:41:35 +01:00
Roger Braun
7de3a65214 Longer timeouts for user fetching. 2017-11-07 09:11:19 +01:00
Roger Braun
d009a79df5 TwitterAPI: Return proper error.
Fixes .
2017-09-17 14:37:00 +02:00
Roger Braun
f03524805f Try host-meta call over https. 2017-09-13 11:59:56 +02:00
Roger Braun
08bd59e446 Extend webfinger capabilities. 2017-08-24 12:54:53 +02:00
Roger Braun
7b0dd964be Slightly nicer webfinger error handling. 2017-08-03 14:14:48 +02:00
Roger Braun
39bacba280 More resilient xml parsing. 2017-06-24 14:35:32 +02:00
Roger Braun
d982f04a65 Mock HTTPoison in testing. 2017-05-05 14:16:54 +02:00
Roger Braun
7269c51f3a Some refactoring. 2017-05-05 12:07:38 +02:00
Roger Braun
c48c381e90 Merge branch 'develop' into dtluna/pleroma-refactor/1 2017-05-05 11:46:59 +02:00
Roger Braun
8141024259 Attachment parsing, better magic key fetching. 2017-05-03 14:26:49 +02:00
Roger Braun
b104348fa5 Follow webfinger redirects. 2017-05-02 17:44:55 +02:00
Roger Braun
703d9f3628 Not enough h. 2017-05-01 20:04:32 +02:00
Roger Braun
76e653b0d8 Add user profile page link. 2017-05-01 20:02:32 +02:00
Roger Braun
35938656ab Make user keys on usage. 2017-05-01 14:07:29 +02:00
Roger Braun
e54e592d6c Return webfinger for ap_ids. 2017-05-01 13:51:17 +02:00
Roger Braun
a173fb9e41 Get users fresh, might so we don't make new keys all the time. 2017-04-30 15:05:16 +02:00
Roger Braun
bb1d08a47c Return keys in webfinger. 2017-04-30 15:00:04 +02:00