Commit Graph

158 Commits

Author SHA1 Message Date
flarum-bot
0e238a9c82 Bundled output for commit 64fa35f2f3
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-25 17:25:24 +00:00
flarum-bot
c50c924242 Bundled output for commit 18bdd48835
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-16 10:30:13 +00:00
flarum-bot
ab56aefeaa Bundled output for commit 259db92b9a
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2022-11-10 23:30:18 +00:00
Daniël Klabbers
1e00e3fdbb chore: dependency on core updated for extensions 2022-11-10 13:48:00 +01:00
Sami Mazouz
62a396e434
feat: send notifications of a new reply when post is approved (#3656)
* test(subscriptions): approved reply sends out notifications to users

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

* feat: send notifications when a post is approved

The code in approval was extracted into a listener because no matter what listeners are always executed before subscribers even if the extension is set to load before.

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
2022-11-07 11:52:28 +00:00
StyleCI Bot
267f6759f8
Apply fixes from StyleCI 2022-09-22 08:21:34 +00:00
Daniël Klabbers
b5874a08e4 fix(approval): posts approved for deleted users error
In certain edge cases posts get approved through moderative action and
throws an error when the user has already been deleted.

Ref: DISCUSS-11K on sentry
2022-09-22 10:20:06 +02:00
Daniël Klabbers
a35df8c139 chore: v1.5.0 preparations 2022-09-13 10:55:30 +02:00
flarum-bot
71b444b6f6 Bundled output for commit bb641144b6
Includes transpiled JS/TS.

[skip ci]
2022-08-02 11:36:01 +00:00
Ian Morland
237076e5b7
chore(approval, likes): use subscribers (#3577)
* chore: use subscribers

* Apply fixes from StyleCI

* Un-static

Co-authored-by: StyleCI Bot <bot@styleci.io>
2022-08-02 11:27:26 +01:00
Sami Mazouz
4e52f0e420
chore: monorepo local development improvements (#3523)
* chore: centralize editorconfig
* chore: tweak tsconfigs for local development
* revert src path change
* fix: akismet type checking requires flag ext `@types`
* fix: make tags route optional to avoid typescript typing error
2022-07-18 15:19:11 +01:00
Daniël Klabbers
556d461cfb chore: update v1.4 constraints and update issues url 2022-07-12 23:30:03 +02:00
Sami Mazouz
abc12b4ba5
chore: add .gitattributes to extensions to export-ignore files. (#3513)
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-07-08 20:38:20 +01:00
Sami Mazouz
d82a73feed fix(approval): unapproved posts visible to all when no visibility scopers are added
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-07-08 19:16:53 +01:00
Sami Mazouz
ab6cee1a25 test(approval): unapproved content can only be seen by allowed users
Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
2022-07-08 19:16:53 +01:00
Sami Mazouz
27fb011bf5
chore: with yarn workspaces we only need a single yarn.lock (#3464)
* chore: yarn workspaces means we only need a single `yarn.lock`
* fix: add a `cache_dependency_path` workflow input
* fix: re-introduce `env.cache_dependency_path`
2022-06-19 19:01:21 +01:00
Daniël Klabbers
592039c483 update constraint to v1.3 2022-05-10 16:28:35 +02:00
Alexander Skvortsov
00b9151864 feat: deprecate discussion post_number_index field. 2022-03-31 08:46:20 +02:00
Alexander Skvortsov
a595665bfb
fix: Assorted Typing Fixes (#3348)
With all the commits below, we resolve all outstanding typing issues in the repo, and CI jobs run green.

* fix: Convert DashboardPage and DashboardWidget to TypeScript

* fix: fix type errors in package manager ext

* fix: Convert Post component to TypeScript

* fix: avatar typings should accept null user

* fix: convert Notification component to TypeScript

* fix: properly use `typeof` in ForumApplication

* feat: make Notification content attr generic

* chore: format Notification component

* fix: Convert DiscussionRenamedNotification to TypeScript

* fix(pusher) move shims to a location where they get applied

* fix(pusher): fix some typing errors

* fix(akismet): fix some typing issues

* chore: update core dist typings

* chore(pusher): format

* fix: anchorScroll should accept string selectors

* fix: more accurately represent ApiQueryParamsPlural

* fix: convert PostStreamState to TypeScript

* chore(core): rebuild typings

* feat: allow extending app.routes

* fix: more flexible typings for highlight.ts

* fix: use primitive `number` type for Discussion typings

* fix: convert DiscussionListItem to TypeScript

* chore: rebuild core typings

* fix: final pusher type fixes

* feat: start tags TypeScript conversion

* fix: require-dev tags in pusher for CI TypeScript purposes.

* chore(core): format

* chore(tags): build dist typings

* feat(pusher): use dist types from tags.

* feat: convert flags to TypeScript

* chore(flags): generate dist typings

* fix(akismet): last type errors

* chore: update .yarn-integrity

* chore: partially run flarum-cli audit infra --fix

The tsconfig changes from that command are ignored, since we don't yet support "replacable sections" that would let us add custom config.

* chore: use type imports

* fix: broader gitattributes

* chore: run flarum-cli audit infra --monorepo --fix

* feat: make `app.data` typings extensible

* chore(core): format

* chore: boost tags TypeScript coverage

* fix(tags): further increase type coverage.
2022-03-23 11:43:14 -04:00
Alexander Skvortsov
f2910d8763 chore: add version to core/ext package.json
This is necessary for yarn workspaces to work.
2022-03-11 19:12:11 -05:00
Alexander Skvortsov
5fc0b4963a chore: flarum-cli audit infra --fix 2022-03-11 18:02:51 -05:00
Alexander Skvortsov
693da58c41 chore: set up composer path repos 2022-03-11 18:02:49 -05:00
Alexander Skvortsov
2bf6b12a64 chore: remove centralizable repo config
- Remove .github conf folder from Flarum packages

- Remove styleci config from all packages
2022-03-11 18:01:44 -05:00
Daniel Klabbers
5de91e58fe Release v1.2 2022-01-20 11:55:45 +01:00
Alexander Skvortsov
30e88ebe57 Merge branch 'master' of github.com:flarum/approval 2022-01-20 03:24:28 -05:00
Alexander Skvortsov
12488bc6d5 chore: remove unnecessary tsconfig 2022-01-20 03:24:25 -05:00
flarum-bot
69806a95cf Bundled output for commit 05246fb155
Includes transpiled JS/TS.

[skip ci]
2022-01-20 08:16:30 +00:00
Alexander Skvortsov
05246fb155 chore: flarum-cli audit infra --fix 2022-01-20 03:14:59 -05:00
flarum-bot
5e30428b66 Bundled output for commit 200d488209
Includes transpiled JS/TS.

[skip ci]
2022-01-11 10:44:07 +00:00
Ian Morland
200d488209 chore: repo maintenance (#28)
* Bump deps

* Update imports

* format
2022-01-11 10:43:15 +00:00
flarum-bot
4f3b797b75 Bundled output for commit 152a9bed14
Includes transpiled JS/TS.

[skip ci]
2021-10-13 11:06:14 +00:00
David Wheatley
152a9bed14 chore: fix JS 2021-10-13 12:05:05 +01:00
David Wheatley
5dc2ac9336 chore: bump bundled extension constraint to core 1.1 2021-10-13 08:05:01 +01:00
flarum-bot
0bd3f83528 Bundled output for commit ad168f345c
Includes transpiled JS/TS.

[skip ci]
2021-10-12 01:27:15 +00:00
Alexander Skvortsov
ad168f345c Release v1.1.0 2021-10-11 21:02:26 -04:00
Daniel Klabbers
a989ab040a fix branch alias 2021-05-25 22:44:28 +02:00
Daniel Klabbers
cce3e072fb changes for stable 2021-05-25 15:13:30 +02:00
Alexander Skvortsov
506857bf92 Bump composer reqs for 1.0.0 2021-05-16 18:27:21 -04:00
David Wheatley
0525dbd7c8 Update copyright year 2021-05-15 00:47:08 +01:00
Alexander Skvortsov
fd48af2032 Massively simplify TagPolicy 2021-05-11 22:16:55 -04:00
Alexander Skvortsov
3b3cbdc82f Fix conflicts with other extension visibility scoping (#26)
Wrapping all `wheres` in an `orWhere` ensures that there's no conflict.

See https://github.com/flarum/core/issues/2798, https://github.com/flarum/docs/pull/200
2021-04-20 14:51:01 -04:00
Daniel Klabbers
dbccc396b0 forgot one change in changelog 2021-03-15 10:24:28 +01:00
Daniel Klabbers
cd0f550808 Release v0.1.0-beta.16 2021-03-15 10:23:58 +01:00
Alexander Skvortsov
70cbe1d186 Update to use new extenders 2021-03-13 15:15:11 -05:00
Charlie
e17b088c20 Change Category (#24) 2021-03-08 14:22:03 -05:00
imzhi
687e1c41db ApproveContent then refresh user table DiscussionCount and CommentCount (#16) 2021-02-19 08:18:01 -05:00
Robert Korulczyk
04f4b1f14e Move locale files from language pack to extension. (#22) 2021-02-17 16:26:31 -05:00
Daniël Klabbers
24519534cc fix incorrect version compare for beta 14 to 15 2020-12-14 21:31:13 +01:00
Daniël Klabbers
a509feb080 changelog and constraint for beta 15 2020-12-14 21:03:48 +01:00
Daniël Klabbers
4dcc9036d7 npm audit fix 2020-12-14 21:01:47 +01:00