Skip to content
Snippets Groups Projects

Show instance sponsors if OC is set as donation url

Merged Marie requested to merge upd/instancesponsor into develop

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading