1
0
mirror of https://github.com/flarum/core.git synced 2025-09-02 20:52:45 +02:00
Commit Graph

8263 Commits

Author SHA1 Message Date
Toby Zerner
8632dd31e5 Fix travis builds 2018-12-04 10:16:32 +10:30
flarum-bot
ce1f81a460 Bundled output for commit 87ed42157f [skip ci] 2018-12-03 23:43:48 +00:00
Toby Zerner
87ed42157f Fix travis builds 2018-12-04 10:11:51 +10:30
Toby Zerner
d7fd5ef11e Don't output empty html tag attributes
From https://discuss.flarum.org/d/17817-meta-description-is-empty/8
ref #1677
2018-12-04 09:47:49 +10:30
Toby Zerner
2b9e969b95 Fix empty meta description tag. Fixes #1677 2018-12-04 09:28:24 +10:30
Toby Zerner
bdda467ae1 Prevent crash if likes relationship hasn't been loaded
This could theoretically happen if a post is loaded in some other context
(without its likes relationship) and overwrites the full version in the
store. While this should ideally never happen, it's better to fail
gracefully if it does.

Fixes flarum/core#1665
2018-12-04 09:23:11 +10:30
Toby Zerner
b8661a166f Update old attribute names. fixes flarum/core#1666 2018-12-04 09:18:01 +10:30
Toby Zerner
126551366b Set the default engine in the installer
The installer doesn't use DatabaseServiceProvider, so we need to set
the default engine in the config here too.

Fixes #1675
2018-12-04 09:12:19 +10:30
Toby Zerner
93531c6636 Fix oopsie in d6632c061d 2018-12-04 08:54:33 +10:30
Toby Zerner
72ba762fed Truncate notification excerpts 2018-12-03 09:37:14 +10:30
Toby Zerner
e2bb04ce34 Truncate notification excerpts 2018-12-03 09:37:01 +10:30
flarum-bot
d399c38b96 Bundled output for commit eefac062a1 [skip ci] 2018-12-02 22:26:12 +00:00
Toby Zerner
eefac062a1 Update changelog 2018-12-03 08:51:27 +10:30
Toby Zerner
4365fa3c52 Fix discussion list scroll position not being maintained when hero is not visible 2018-12-03 08:50:54 +10:30
Toby Zerner
83cdea35ea Add changelog 2018-12-02 08:08:44 +10:30
Franz Liedke
e2004c2dcb Migrations: Fix dropping foreign keys
Passing an array to dropForeign does not mean dropping multiple indices,
but rather dropping a key on multiple tables.

Passing a string means that this string will be interpreted as index
name, not as name of the indexed column. Passing an array with one
string is therefore correct, in order to benefit from automatic index
name generation.
2018-11-30 14:05:04 +01:00
Franz Liedke
731da10088 Migrations: Fix dropping foreign keys
Passing an array to dropForeign does not mean dropping multiple indices,
but rather dropping a key on multiple tables.

Passing a string means that this string will be interpreted as index
name, not as name of the indexed column. Passing an array with one
string is therefore correct, in order to benefit from automatic index
name generation.
2018-11-30 14:04:44 +01:00
Franz Liedke
732432d00b Migrations: Fix dropping foreign keys
Passing an array to dropForeign does not mean dropping multiple indices,
but rather dropping a key on multiple tables.

Passing a string means that this string will be interpreted as index
name, not as name of the indexed column. Passing an array with one
string is therefore correct, in order to benefit from automatic index
name generation.
2018-11-30 14:04:26 +01:00
Franz Liedke
ae3d1f5f5f Migrations: Fix dropping foreign keys
Passing an array to dropForeign does not mean dropping multiple indices,
but rather dropping a key on multiple tables.

Passing a string means that this string will be interpreted as index
name, not as name of the indexed column. Passing an array with one
string is therefore correct, in order to benefit from automatic index
name generation.
2018-11-30 14:04:12 +01:00
Franz Liedke
c23b7f33eb Migrations: Fix dropping foreign keys
Passing an array to dropForeign does not mean dropping multiple indices,
but rather dropping a key on multiple tables.

Passing a string means that this string will be interpreted as index
name, not as name of the indexed column. Passing an array with one
string is therefore correct, in order to benefit from automatic index
name generation.
2018-11-30 14:02:37 +01:00
Franz Liedke
d6632c061d Set InnoDB for DB connection and new tables
Refs #1661.
2018-11-29 23:21:58 +01:00
Franz Liedke
7092b3bfff Installer: Fix invalid join time of admin user
Fixes #1664.
2018-11-29 22:56:56 +01:00
Franz Liedke
42dfcf3e40 Fix search with database prefix
wrap() only adds a table prefix when referencing a column with a table
name (such as `foo.bar`) - when only a single identifier is provided, it
is assumed to be a column name, which does not need a prefix.

Fixes #1659.
2018-11-29 22:50:32 +01:00
Franz Liedke
13005b0363 Fix live output in ResetCommand
This was forgotten in aab06e0.

Fixes #1663.
2018-11-29 22:04:01 +01:00
Franz Liedke
ff17cba95a Fix code style and doc block 2018-11-29 21:31:12 +01:00
Daniël Klabbers
992bd2f3ad Up the version (#1582) 2018-11-29 00:34:49 +01:00
Franz Liedke
521a592d43 Always invalidate all user email tokens
Reported by B. Dhiyaneshwaran of Geek Freak.
2018-11-29 00:33:42 +01:00
Toby Zerner
d08bb264b4 Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:34:26 +10:30
Toby Zerner
d497e65d21 Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:34:00 +10:30
Toby Zerner
147fc1a65e Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:33:45 +10:30
Toby Zerner
ba84633d45 Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:33:38 +10:30
Toby Zerner
a54f1e2bc5 Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:33:32 +10:30
Toby Zerner
2722a0f2c5 Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 22:33:21 +10:30
Toby Zerner
0ff0f45150 Merge pull request #1656 from flarum/tz/fix-index-names
Fix index names in migrations
2018-11-27 22:32:17 +10:30
Toby Zerner
41688c73f8 Fix index names in migrations
This can be reverted when we upgrade to Laravel 5.7.
2018-11-27 12:19:13 +10:30
David Sevilla Martín
84b4f4832d Throw FileNotFoundException when FileSource path does not exist
Closes #1649.
2018-11-22 23:40:38 +01:00
Franz Liedke
fcff84fd96 Adopt latest frontend/assets refactoring 2018-11-22 21:59:37 +01:00
David Sevilla Martín
bd210636e8 Fix frontend extender using old container & wrong class 2018-11-22 21:17:32 +01:00
Franz Liedke
9b7957815f Remove obsolete property accessor in User model
The locale field does not exist, and the accessor code was broken.

Closes #1653.
2018-11-22 21:12:25 +01:00
Toby Zerner
b68767abdd Clearer delineation of installation pointer 2018-11-22 18:37:00 +10:30
Toby Zerner
92b89532ec Add translations for new admin tools button 2018-11-22 16:32:09 +10:30
Toby Zerner
f25cc57f95 Remove unused view code 2018-11-22 12:13:41 +10:30
Toby Zerner
54e12c8acc LESS variables and mixins are now included by default 2018-11-22 12:13:41 +10:30
Toby Zerner
b678ace1eb Make npm package private, update deps, change watch to dev 2018-11-22 12:13:41 +10:30
Toby Zerner
d748d8739d Update for beta 8 2018-11-22 12:13:41 +10:30
Toby Zerner
d4cebc5901 Include LESS mixins and variables in all frontend compilers 2018-11-22 12:09:50 +10:30
Toby Zerner
1ea8dbed03 Consolidate ControllerRouteHandler into RouteHandlerFactory
Also allow closure to be passed for frontend content when creating routes
2018-11-22 12:09:50 +10:30
Toby Zerner
171f9184d9 Refactor frontend code to allow for extension of assets
- Simpler class naming:
    Frontend\CompilerFactory → Frontend\Assets
    Frontend\HtmlDocumentFactory → Frontend\Frontend
    Frontend\HtmlDocument → Frontend\Document

- Remove AssetInterface and simply collect callbacks in Frontend\Assets
  instead

- Remove ContentInterface because it serves no purpose (never type-
  hinted or type-checked)

- Commit and add asset URLs to the Document via a content callback
  instead of in the Document factory class itself

- Add translations and locale assets to Assets separate to the assets
  factory, as non-forum/admin asset bundles probably won't want them

- Update Frontend Extender to allow the creation of new asset bundles

- Make custom LESS validation listener a standalone class instead of
  extending RecompileFrontendAssets
2018-11-22 12:09:50 +10:30
flarum-bot
59330d8fe6 Bundled output for commit dc71192d77 [skip ci] 2018-11-21 21:38:27 +00:00
Toby Zerner
fedc1f6fe4 Apply fixes from StyleCI (#1651)
[ci skip] [skip ci]
2018-11-22 08:04:41 +10:30