Skip to content

Commit

Permalink
Change namespace of direct-links (#57)
Browse files Browse the repository at this point in the history
* Update to fix Support direct links when enabled for new name of extension fof/direct-links

Update to src/Api/Controllers/SendInvitesController.php to fix a problem with support of direct links when FoF Direct Links extension is enabled
original extension name was: zerosonesfun/direct-links
should reflect new extension name: fof/direct-links

* fix: change namespace  of `direct-links`

* docs: adjust readme

* style: run formatter

---------

Co-authored-by: Davide Iadeluca <[email protected]>
  • Loading branch information
ahneale and DavideIadeluca authored Apr 8, 2024
1 parent 97eeb9e commit 1fe42c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Doorman by FriendsOfFlarum

[![GitLab license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/FriendsOfFlarum/doorman/blob/master/LICENSE.md) [![Latest Stable Version](https://img.shields.io/packagist/v/fof/doorman.svg)](https://github.com/FriendsOfFlarum/doorman) [![OpenCollective](https://img.shields.io/badge/opencollective-fof-blue.svg)](https://opencollective.com/fof/donate)
[![GitLab license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/FriendsOfFlarum/doorman/blob/master/LICENSE.md) [![Latest Stable Version](https://img.shields.io/packagist/v/fof/doorman.svg)](https://github.com/FriendsOfFlarum/doorman) [![OpenCollective](https://img.shields.io/badge/opencollective-fof-blue.svg)](https://opencollective.com/fof/donate)

A [Flarum](http://flarum.org) extension that restricts sign-ups to user's who have a code created in the admin panel.

Expand All @@ -9,7 +9,7 @@ Each code can be set to have a maximum number of uses, what group the user shoul
### Usage

- Setup sign-up codes on the admin panel
- Includes optional support for [Direct Links](https://github.com/zerosonesfun/direct-links). When this extension is also enabled, email invites will include a link which will take the uew user directly to the signup modal, rather than the forum home page.
- Includes optional support for [Direct Links](https://github.com/FriendsOfFlarum/direct-links). When this extension is also enabled, email invites will include a link which will take the uew user directly to the signup modal, rather than the forum home page.

### Installation

Expand All @@ -27,9 +27,9 @@ Then login and enable the extension.

### Issues

- [Open an issue on Github](https://github.com/FriendsOfFlarum/doorman/issues)
- [Open an issue on Github](https://github.com/FriendsOfFlarum/doorman/issues)

### Links

- [On Github](https://github.com/FriendsOfFlarum/doorman)
- [On Packagist](https://packagist.org/packages/fof/doorman)
- [On Packagist](https://packagist.org/packages/fof/doorman)
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"discuss": "https://discuss.flarum.org/d/17845"
},
"optional-dependencies": [
"zerosonesfun/direct-links"
"fof/direct-links"
],
"flarum-cli": {
"modules": {
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Controllers/SendInvitesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected function data(ServerRequestInterface $request, Document $document)

$body = $this->translator->trans('fof-doorman.forum.email.body', [
'{forum}' => $title,
'{url}' => $this->extensions->isEnabled('zerosonesfun-direct-links') ? $this->url->to('forum')->route('direct-links-signup') : $this->url->to('forum')->base(),
'{url}' => $this->extensions->isEnabled('fof-direct-links') ? $this->url->to('forum')->route('direct-links-signup') : $this->url->to('forum')->base(),
'{code}' => $doorkey->key,
]);

Expand Down

0 comments on commit 1fe42c3

Please sign in to comment.