gotosocial/internal/typeutils
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
..
astointernal_test.go [bugfix] 2643 bug search for account url doesnt always work when redirected (#2673) 2024-02-23 16:24:40 +01:00
astointernal.go [feature] serdes for moved/also_known_as (#2600) 2024-02-06 09:45:46 +00:00
converter_test.go [bugfix] Don't return Account or Status if new and dereferencing failed, other small fixes (#2563) 2024-01-26 14:17:10 +01:00
converter.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
defaulticons.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
frontendtointernal.go [feature] Implement markers API (#1989) 2023-07-29 12:49:14 +02:00
internal.go [bugfix/chore] Announce reliability updates (#2405) 2023-12-01 15:27:15 +01:00
internaltoas_test.go [feature] serdes for moved/also_known_as (#2600) 2024-02-06 09:45:46 +00:00
internaltoas.go [feature] serdes for moved/also_known_as (#2600) 2024-02-06 09:45:46 +00:00
internaltofrontend_test.go [feature] Add requested_by to relationship model (#2672) 2024-02-20 17:50:54 +00:00
internaltofrontend.go [feature] Add requested_by to relationship model (#2672) 2024-02-20 17:50:54 +00:00
internaltorss_test.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00
internaltorss.go [chore] Refactor HTML templates and CSS (#2480) 2023-12-27 11:23:52 +01:00
util_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
util.go [bugfix] Outdent placeholder from <aside> when returning unknown media attachments (#2485) 2024-01-09 10:41:32 +01:00
wrap_test.go [feature] Federate status language in and out (#2366) 2023-11-21 15:13:30 +01:00
wrap.go [bugfix] return 400 Bad Request on more cases of malformed AS data (#2399) 2023-11-30 16:22:34 +00:00