1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 03:14:33 +02:00

3570 Commits

Author SHA1 Message Date
flarum-bot
6de38ff4c9 Bundled output for commit 391a8613cf
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2024-10-26 22:18:59 +00:00
Davide Iadeluca
391a8613cf fix: resolve regression in typing errors (#4097) 2024-10-26 23:15:50 +01:00
flarum-bot
0694651fe9 Bundled output for commit 92b2b4aad1
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2024-10-22 09:18:09 +00:00
IanM
3a45ebc716 [1.x] [suspend] fix: previously suspended admin users cannot remove their avatar after suspension (#4071)
* [1.x][suspend] fix: formally suspended admin users cannot remove their avatar after suspension

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-10-15 12:10:55 +01:00
Davide Iadeluca
9295e7b96f chore(flags): require flarum/core ^1.8.6 (#4061) 2024-10-08 07:40:35 +01:00
Davide Iadeluca
9c91c89326 [1.x] fix(core, mentions): return null if content left empty in formatter (#4059)
* test(core): implement test for creating discussion without content

* fix(core): handle `null` case in XML parser

* fix(mentions): change/remove typings in unparser

* fix(mentions): return early if xml null

* chore: fix PHPStan

* chore: move tests to mentions

* chore: remove unused import

* chore: remove unused imports

* test(mentions): implement test for post editing with content empty

* test(mentions): change post edit tests

* test(mentions): add test for creating discussion with empty string
2024-10-08 06:56:09 +01:00
Davide Iadeluca
88f182cc93 [1.x] [extensibility] Add (some) missing shims (#4027)
* chore: add some missing shims

* chore: remove unused import
2024-10-02 12:13:26 +01:00
flarum-bot
71717f9ebb Bundled output for commit 449ba48ba3
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2024-10-02 07:10:53 +00:00
Davide Iadeluca
449ba48ba3 [1.x] [extensibility] Export all missing modules in compat (#4044)
* chore(emoji): export missing modules in compat API

* chore(flags): export missing modules in compat API

* chore(likes): export missing modules in compat API

* chore(lock): export missing modules in compat API

* chore(markdown): export missing modules in compat API

* chore(mentions): export missing modules in compat API

* chore(nicknames): export missing modules in compat API

* chore(extension-manager): export missing modules in compat API

* chore(statistics): export missing modules in compat API

* chore(sticky): export missing modules in compat API

* chore(subscriptions): export missing modules in compat API

* chore(suspend): export missing modules in compat API

* chore(tags): export missing modules in compat API

* chore(core): export missing modules in compat API

* chore: fix tsconfig
2024-10-02 08:04:10 +01:00
flarum-bot
4d75da36b8 Bundled output for commit d4fe5f5a7a
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2024-10-02 06:54:38 +00:00
Davide Iadeluca
d4fe5f5a7a [1.x] [extensibility] refactor(core, flags): improve & use extensibility of CommentPost & Post (#4047)
* refactor(core): improve extensibility of `CommentPost`

* refactor(core): rename method to more appropriate name

* refactor(core): further improve extensibility of `CommentPost`

* refactor(core): improve extensibility of `Post`

* refactor(flags): use new extensibility for flagged posts
2024-10-02 07:47:05 +01:00
IanM
2c4d64cd20 [1.x] [extensibility] feat: allow classes that extends AbstractJob to be placed on a specified queue (#4026)
* feat: allow classes that extends AbstractJob to be placed on a specific queue

* Apply fixes from StyleCI

* php 7.3 compat

* Apply fixes from StyleCI

* change  to  to avoid conflicts with extensions that already do this

* chore: add docblock explaining that this solution only works for Redis queues

* Apply fixes from StyleCI

* chore: update docblock

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-09-29 15:35:29 +01:00
flarum-bot
de36551b45 Bundled output for commit 54fbcdedd5
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2024-09-29 11:30:04 +00:00
IanM
54fbcdedd5 chore: extensible TagHero (#4041) 2024-09-29 12:26:53 +01:00
IanM
9038ff64f8 [suspend][core] [1.x] fix: suspended users can remove avatar (#3998)
* fix: suspended users can remove avatar

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-09-29 08:54:13 +01:00
flarum-bot
f8c30c96dc Bundled output for commit 3743bc0886
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2024-09-29 07:41:13 +00:00
IanM
3743bc0886 chore: point fontawesome links at v5 free (#4038) 2024-09-29 08:35:57 +01:00
flarum-bot
84414c6699 Bundled output for commit bf0d895106
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2024-09-28 08:23:34 +00:00
IanM
c942f3100d Revert "Export all missing modules in compat (#4006)" (#4032)
This reverts commit e0adf90453.
2024-09-28 09:11:37 +01:00
flarum-bot
4d59ec4600 Bundled output for commit e0adf90453
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2024-09-27 06:54:45 +00:00
Davide Iadeluca
e0adf90453 Export all missing modules in compat (#4006)
* chore(emoji): export missing modules in compat API

* chore(flags): export missing modules in compat API

* chore(likes): export missing modules in compat API

* chore(lock): export missing modules in compat API

* chore(markdown): export missing modules in compat API

* chore(mentions): export missing modules in compat API

* chore(nicknames): export missing modules in compat API

* chore(extension-manager): export missing modules in compat API

* chore(statistics): export missing modules in compat API

* chore(sticky): export missing modules in compat API

* chore(subscriptions): export missing modules in compat API

* chore(suspend): export missing modules in compat API

* chore(tags): export missing modules in compat API

* chore(core): export missing modules in compat API
2024-09-27 07:44:06 +01:00
StyleCI Bot
e43530e40a Apply fixes from StyleCI 2024-09-26 15:55:20 +00:00
Rafał Całka
b3366e4c93 fix(tags): load correct user tag state and prevent N+1 queries in stateFor (#4008)
* fix: load tag state for correct user
* fix: prevent loading state if loaded previously
* fix(PHPStan): TagState can be null
2024-08-10 18:29:26 +01:00
Daniël Klabbers
a52959ccf2 Patch vulnerability advisory (#3966)
Seems composer has a vulnerability, see https://github.com/advisories/GHSA-7c6p-848j-wh5h

Affected versions
>= 2.0.0-alpha1, < 2.2.23 -- patched in 2.2.23
>= 2.3.0-rc1, < 2.7.0 -- patched in 2.7.0

---

Let's raise the minimum to enforce the latest.

Thank you @peopleinside for reporting this.

(cherry picked from commit e771b908d5)
2024-02-22 11:43:31 +01:00
Sami Mazouz
b2044ff312 fix(em): breaks when composer deps get updated 2024-02-04 13:56:09 +01:00
Sami Mazouz
4f4977b7a5 fix(em): phpstan 2024-01-12 17:59:59 +01:00
Sami Mazouz
24b7dcb102 fix(em): composer.json schema issues 2024-01-12 17:57:08 +01:00
Sami Mazouz
207032f6ff chore: rename package-manager to extension-manager 2024-01-10 15:56:32 +01:00
Davide Iadeluca
8205ae5bf5 [1.x] fix(Mentions): allow renderer to be used without context (#3953)
* fix(Mentions): allow renderer to be used without context

* test(Mentions): implement test for rendering post without context
2024-01-10 09:53:10 +00:00
flarum-bot
ac6f4d4d0c Bundled output for commit 56b2b3b2bc
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2024-01-06 17:07:40 +00:00
Sami Mazouz
56b2b3b2bc fix(package-manager): bugs 2024-01-06 18:00:09 +01:00
Sami Mazouz
7fb0e08c0a fix(package-manager): file not found exception 2024-01-06 13:07:02 +01:00
Sami Mazouz
45a8b572e3 fix: package name require format 2024-01-04 14:14:45 +01:00
flarum-bot
5d14f96c32 Bundled output for commit 2299541e4d
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-12-18 12:50:33 +00:00
Sami Mazouz
2299541e4d feat: package manager improvements (#3943)
* chore: track
* Apply fixes from StyleCI
* chore: track
* Apply fixes from StyleCI
* fix: installing beta packages #3792
* chore: guess package not found error
* Apply fixes from StyleCI
* feat: queue improvements
* feat: queue improvements
* fix: issues with job failure and unique runs
* fix: enforce one composer action at a time
* feat: add cause to queued command output
* Apply fixes from StyleCI
* feat: add soft & hard extension update options
* chore: explain why an extension cannot be removed
* chore: remove test
* chore: simplify
* docs: readme
* Apply fixes from StyleCI
* fea: allow adding repositories and auth methods
* chore: prevent future issues when min stability is set
* chore: typings check
* fix: phpstan
* Apply fixes from StyleCI
* fix: bugs
2023-12-18 13:44:33 +01:00
Rafał Całka
1c421fc266 fix(1.x,approval): correct PostWasApproved event trigger condition (#3925) 2023-11-17 17:58:14 +01:00
Sami Mazouz
b1383a955f fix(1.x,suspend): suspended users can abuse avatar upload (#3890)
* fix(1.x,suspend): suspended users can abuse avatar upload

* test: works as expected

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-09-22 19:38:33 +01:00
Ian Morland
e03ca4406d chore: build js 2023-07-06 12:03:30 +01:00
StyleCI Bot
7894c6a69b Apply fixes from StyleCI 2023-07-05 09:31:05 +00:00
Sami Mazouz
5a4bb7ccf2 fix: missing slug from post mention links 2023-07-04 11:00:45 +01:00
Sami Mazouz
d2a6329689 fix(mentions): cannot use mentionables extender (#3849) 2023-07-04 10:56:52 +01:00
Rafael Horvat
2bc2899a1d fix(mentions): missed post mentions UI changes (#3832)
Co-authored-by: Ian Morland <ian@morland.me>
2023-07-01 17:44:59 +01:00
Sami Mazouz
e5abffc75b chore: v1.8 preparations
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-05-20 16:08:42 +01:00
Sami Mazouz
65390a4fc0 test: patch phpstan error
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-05-16 19:57:57 +01:00
Sami Mazouz
f1f6051deb fix(regression): lost spacing between tag label icon and text
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-05-16 19:21:04 +01:00
Sami Mazouz
bded3da42d fix(regression): queryVisibleTo accepts nullable actor
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-05-16 19:17:07 +01:00
Sami Mazouz
231cee1f78 fix(regression): newCollection accepts collections
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-05-15 17:31:23 +01:00
flarum-bot
f6c9bbb427 Bundled output for commit feb968780a
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2023-05-14 20:41:53 +00:00
Sami Mazouz
feb968780a fix(regression): missing TagsLabel class
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-05-14 21:34:34 +01:00
Sami Mazouz
5b89d3e91a chore(regression): use correct imports from core js
Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2023-05-14 21:34:17 +01:00