GoToSocial/internal/ap
kim 1d51e3c8d6
[bugfix] 2643 bug search for account url doesnt always work when redirected (#2673)
* update activity library so dereferencer returns full response and checks *final* link to allow for redirects

* temporarily add bodged fixed library

* remove unused code

* update getAccountFeatured() to use dereferenceCollectionPage()

* make sure to release map

* perform a 2nd decode to ensure reader is empty after primary decode

* add comment explaining choice of using Decode() instead of Unmarshal()

* update embedded activity library to latest matching https://github.com/superseriousbusiness/activity/pull/21

* add checks to look for changed URI and re-check database if redirected

* update max iteration count to 512, add checks during dereferenceAncestors() for indirect URLs

* remove doubled-up code

* fix use of status instead of current

* use URIs for checking equality for security

* use the latest known URI for boost_of_uri in case original was an indirect

* add dereferenceCollection() function for dereferenceAccountFeatured()

* pull in latest github.com/superseriousbusiness/activity version (and remove the bodge!!)

* fix typo in code comments

* update decodeType() to accept a readcloser and handle body closing

* switch to checking using BoostOfID and add note why not using BoostOfURI

* ensure InReplyTo gets unset when deleting status parent in case currently stubbed

* add tests for Collection and CollectionPage iterators
2024-02-23 16:24:40 +01:00
..
activitystreams_test.go [bugfix] self-referencing collection pages for status replies (#2364) 2023-11-20 12:22:28 +00:00
activitystreams.go [chore] internal/ap: add pollable AS types, code reformatting, general niceties (#2248) 2023-10-03 14:59:30 +01:00
ap_test.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00
collections_test.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00
collections.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00
extract.go [chore] Harden up boolptr logic on Accounts, warn if not set (#2544) 2024-01-19 13:02:04 +00:00
extractattachments_test.go [bugfix] Extract description as summary first, fall back to name (#2303) 2023-10-26 11:59:10 +02:00
extractcontent_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
extracthashtags_test.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
extractmentions_test.go [bugfix] Relax Mention parsing, allowing either href or name (#2320) 2023-10-31 11:05:17 +00:00
extractsensitive_test.go [bugfix] Use gtserror package for WrongType errs (#1930) 2023-06-27 11:37:42 +02:00
extractvisibility_test.go [bugfix] Use gtserror package for WrongType errs (#1930) 2023-06-27 11:37:42 +02:00
interfaces.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00
normalize_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
normalize.go [feature] serdes for moved/also_known_as (#2600) 2024-02-06 09:45:46 +00:00
properties.go [feature] serdes for moved/also_known_as (#2600) 2024-02-06 09:45:46 +00:00
resolve_test.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00
resolve.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00
serialize.go [feature] serdes for moved/also_known_as (#2600) 2024-02-06 09:45:46 +00:00
util.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00