Show instance sponsors if OC is set as donation url
What does this PR do?
This was requested by @piuvas on discord after the OC sponsor fetching was added.
All this does is expand the sponsors endpoint to add an instance
boolean which is set to true on the instance information page.
It will check if a cached version exists first like the normal sponsor one does for the sharkey page.
If not then it checks the donationUrl is set and if it points to opencollective followed by it fetching all backers.
It then sorts by isActive and if Tier is set on user (otherwise it will show all backers) and then returns and caches it.
Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines
-
I agree to follow this project's Contribution Guidelines -
I have made sure to test this pull request
Merge request reports
Activity
Filter activity
Please register or sign in to reply