1
0
mirror of https://github.com/flarum/core.git synced 2025-08-29 02:50:57 +02:00
Commit Graph

8745 Commits

Author SHA1 Message Date
Franz Liedke
007c6c69bb Fix incorrect sort field name
Closes #1175.
2017-05-04 21:37:03 +02:00
Franz Liedke
b04f28dbd9 Merge pull request #1172 from tpokorra/fixDefaultLanguageSelection
Admin: fix default language selector
2017-05-02 08:37:32 +02:00
Timotheus Pokorra
7c33befc48 Admin: fix default language selector
the binding of the control to the value was missing
fixes #1164
2017-05-01 18:46:12 +02:00
Franz Liedke
81a311c256 Fix order of imports 2017-04-13 09:30:38 +02:00
Franz Liedke
ffa5e8b8c7 Disallow editing if discussions are locked
Fixes flarum/core#1156.
2017-04-13 08:22:08 +02:00
Franz Liedke
c452fa43f3 Merge pull request #1155 from ssfinney/feature/mediumtext_for_post_content_column
Change content column from TEXT to MEDIUMTEXT
2017-04-13 08:04:05 +02:00
Toby Zerner
49504da31e Merge pull request #40 from dshoreman/eagerload
Lazy-load any included relationships on /api/tags
2017-04-12 06:38:29 +09:30
Dave Shoreman
c2fe1fdce5 Lazy-load any included relationships on /api/tags 2017-04-11 14:01:17 +01:00
Dave Shoreman
f61d834a76 Enable parent to be set during creation via API (#39)
* Enable parent to be set during creation via API

Sets the parent ID as long as it exists and is a top-level primary tag.
If it's not, it'll simply be ignored. Position is set automatically to
be one higher than the current highest, or 0 if parent has no children.

Example data (in addition to the usual attributes):
```
"relationships": {
    "parent": {
        "data": {
            "id": 1
        }
    }
}
```

* Add support for creating top-level tags

To set a top-level primary tag, pass parent id of 0
For a secondary tag, pass null or remove it from the request
To set as a child, pass the parent tag's id
2017-04-11 13:54:35 +09:30
Toby Zerner
61321c32ed Merge pull request #38 from dshoreman/include-fix
Specify available includes for /api/tags endpoint
2017-04-11 10:38:59 +09:30
Dave Shoreman
941a0b2c8a Specify available includes for /api/tags endpoint 2017-04-10 23:23:32 +01:00
Stephen Finney
ddea8490aa Change content column from TEXT to MEDIUMTEXT
Fixes #1044
2017-04-09 16:12:34 -04:00
Toby Zerner
dfe094981b Merge pull request #36 from dshoreman/fix-api-error
Fix Internal Server Error for blank API requests
2017-04-07 18:05:28 +09:30
Dave Shoreman
fb8ad8fe9a Fix Internal Server Error for blank API requests
Attempting to send an empty body to the create and update endpoints will
result in Flarum outputting "Internal Server Error" as plain text,
instead of failing gracefully with a json-ised validation exception.

This commit adds an empty array as the third parameter to array_get,
which sets the default value and thus allows Flarum to do its thing.
2017-04-06 04:16:40 +01:00
Franz Liedke
c48ff264e8 Prevent reverting editable user bio on click
Turns out the click handler was bound to the surrounding element
rather than the one that wraps the rendered bio when it is not
being edited.

Fixes #1145.
2017-03-17 22:14:51 +01:00
Franz Liedke
3f10eeaa88 Cookies: Set expires flag for remember cookies
Without this, session remembering would not work in Internet
Explorer (and Edge?).

Fixes #1127.
2017-03-14 22:25:20 +01:00
Franz Liedke
7b9f9a7812 Add link() and setCanonicalUrl() methods to the WebAppView
These make it easier for controllers to define relationships from
the current to other pages, which is important for SEO mostly.
2017-03-13 18:08:32 +01:00
Franz Liedke
482d66a267 Fix comment typo 2017-03-13 12:52:25 +01:00
Franz Liedke
4c2070c192 Fix indentation 2017-03-12 23:05:04 +01:00
Franz Liedke
b68d7c6107 Fix indentation 2017-03-12 23:03:46 +01:00
David Sevilla Martín
1d047909e8 Add option to hide the language selector (#1106)
* Added option to hide the language selector in the header
* Added `hide_language_selector` Switch to BasicsPage
* Added `hideLanguageSelector` property to ForumSerializer
* Apparently fixed the "Add Extension" button locale.... someone must not have compiled their changes :P

* Changed hideLanguageSelector (and such) to showLanguageSelector

* Change `core.admin.basics.show_language_selector_heading` to be `_label`

* Change showLanguageSelector in ForumSerializer to be boolean, default: true

* Ooops! Remove console.log 🤦‍♂️
2017-03-07 10:04:44 +10:30
Franz Liedke
425a612537 Recompile dist JS 2017-03-06 22:01:14 +01:00
Franz Liedke
04b32d9abc Improve order of mention auto-completes
Suggest plain mention of username before explicitly replying to a
specific post.

Closes flarum/core#1118.
2017-03-06 22:00:25 +01:00
Toby Zerner
3099122852 Merge pull request #101 from milescellar/patch-7
Update description of filled rule
2017-03-06 07:42:32 +10:30
Miles Cellar
ec5059221e Update description of filled rule
Source: 90886732cf
2017-03-05 20:31:55 +01:00
Toby Zerner
cf65b28ccf Merge pull request #1141 from sijad/fix-logout-redirect
prevent unsafe redirect via logout controller
2017-03-04 22:10:18 +10:30
Sajjad Hashemian
7cd73f621e prevent unsafe redirect via logout controller 2017-03-04 14:51:21 +03:30
Franz Liedke
e33a7b94ab Merge pull request #100 from milescellar/patch-6
Add "Rename" to the reused translations
2017-03-03 08:46:20 +01:00
Toby Zerner
747138402d Merge pull request #1131 from flarum/866/affixSidebar-resize
Affix sidebar when window is resized
2017-03-03 15:24:13 +10:30
Miles Cellar
35db9d7294 Add "Rename" to the reused translations
Just because there are now two references of it.
2017-03-02 16:41:15 +01:00
Franz Liedke
47ca69d131 Fix nesting of rename_discussion translations
Refs flarum/flarum-ext-english#98.
2017-02-28 22:42:41 +01:00
Franz Liedke
cf82c04525 Fix nesting of rename_discussion translations
Refs #98.
2017-02-28 22:39:33 +01:00
Franz Liedke
adb01adc4c Merge pull request #1135 from sijad/add-noindex-header
Prevent crawlers to index nojs pages
2017-02-27 18:13:38 +01:00
Franz Liedke
2f80e93874 Rename translation key 2017-02-26 23:47:20 +01:00
Franz Liedke
e7b794b55b Rename translation key 2017-02-26 23:47:11 +01:00
Franz Liedke
1836923959 Rename modal component 2017-02-26 23:44:57 +01:00
Franz Liedke
c6382eecee Merge pull request #98 from wiwatsrt/Patch-1
Rename discussion modal translations
2017-02-26 23:36:36 +01:00
Franz Liedke
b775e59909 Merge pull request #6 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-26 21:09:09 +01:00
Franz Liedke
c4f91cc462 Merge pull request #10 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-26 21:09:05 +01:00
Franz Liedke
820a9db4d2 Merge pull request #10 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-26 21:09:01 +01:00
Franz Liedke
268fe55565 Merge pull request #10 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-26 21:08:58 +01:00
Franz Liedke
5b599fd015 Merge pull request #10 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-26 21:08:54 +01:00
Sajjad Hashemian
be099f0da7 Prevent crawlers to index nojs pages 2017-02-26 19:48:33 +03:30
Franz Liedke
62c5d98e20 Merge pull request #11 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-20 16:19:27 +01:00
Franz Liedke
0e470a91da Merge pull request #10 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-20 16:19:15 +01:00
Franz Liedke
be643a1e4b Merge pull request #35 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-20 16:18:48 +01:00
Franz Liedke
1186bed6ce Merge pull request #24 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-20 16:18:44 +01:00
Franz Liedke
10d2f18e62 Merge pull request #13 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-20 16:18:38 +01:00
Franz Liedke
fe7a901e83 Merge pull request #6 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-20 16:18:33 +01:00
Franz Liedke
415a4c8997 Merge pull request #3 from janga1997/patch-1
Hide diff for compiled diff files
2017-02-20 16:18:18 +01:00