mirror of
https://github.com/flarum/core.git
synced 2025-08-16 21:34:08 +02:00
Compare commits
4 Commits
2.x
...
dk/email-v
Author | SHA1 | Date | |
---|---|---|---|
|
453d272874 | ||
|
f04542e8fb | ||
|
64cd6d1988 | ||
|
51bd7a7e32 |
@@ -40,6 +40,7 @@ class AddCanFlagAttribute
|
||||
// If $actor is the post author, check to see if the setting is enabled
|
||||
return (bool) $this->settings->get('flarum-flags.can_flag_own');
|
||||
}
|
||||
|
||||
// $actor is not the post author
|
||||
return true;
|
||||
}
|
||||
|
2
framework/core/js/dist/admin.js
generated
vendored
2
framework/core/js/dist/admin.js
generated
vendored
File diff suppressed because one or more lines are too long
2
framework/core/js/dist/admin.js.map
generated
vendored
2
framework/core/js/dist/admin.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -40,7 +40,7 @@ export default class StatusWidget extends DashboardWidget {
|
||||
[
|
||||
<span>
|
||||
<strong>{app.translator.trans('core.admin.dashboard.status.headers.scheduler-status')}</strong>{' '}
|
||||
<LinkButton href="https://discuss.flarum.org/d/24118" external={true} target="_blank" icon="fas fa-info-circle" />
|
||||
<LinkButton href="https://docs.flarum.org/scheduler" external={true} target="_blank" icon="fas fa-info-circle" />
|
||||
</span>,
|
||||
<br />,
|
||||
app.data.schedulerStatus,
|
||||
|
@@ -24,33 +24,40 @@ interface BlueprintInterface
|
||||
*
|
||||
* @return User|null
|
||||
*/
|
||||
public function getFromUser();
|
||||
public function getFromUser(): ?User;
|
||||
|
||||
/**
|
||||
* Get the model that is the subject of this activity.
|
||||
*
|
||||
* @return AbstractModel|null
|
||||
*/
|
||||
public function getSubject();
|
||||
public function getSubject(): ?AbstractModel;
|
||||
|
||||
/**
|
||||
* Get the data to be stored in the notification.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getData();
|
||||
public function getData(): mixed;
|
||||
|
||||
/**
|
||||
* Get the serialized type of this activity.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function getType();
|
||||
public static function getType(): string;
|
||||
|
||||
/**
|
||||
* Get the name of the model class for the subject of this activity.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function getSubjectModel();
|
||||
public static function getSubjectModel(): string;
|
||||
|
||||
/**
|
||||
* Whether the blueprint ignores that a user has not verified their email address.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function ignoresUserVerification(): bool;
|
||||
}
|
||||
|
@@ -192,6 +192,7 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase
|
||||
protected function database(): ConnectionInterface
|
||||
{
|
||||
$this->app();
|
||||
|
||||
// Set in `BeginTransactionAndSetDatabase` extender.
|
||||
return $this->database;
|
||||
}
|
||||
|
Reference in New Issue
Block a user