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

8745 Commits

Author SHA1 Message Date
Franz Liedke
ea484732ed Rename controller file 2017-10-03 18:45:41 +02:00
Franz Liedke
be685d72e6 Move ScopeVisibilityTrait to Database namespace 2017-10-03 18:45:41 +02:00
Franz Liedke
0324045f6c Restructure Flarum\Forum namespace 2017-10-03 18:45:40 +02:00
Franz Liedke
5e9308fb4c Create new Flarum\Frontend namespace
It replaces the old Http\WebApp namespace and swallows other namespaces
and files, such as Flarum\Asset.
2017-10-03 18:45:40 +02:00
Franz Liedke
88d34192f1 Fix serializer class names 2017-10-03 18:45:40 +02:00
Franz Liedke
aecfe31f9a Register new MigrationServiceProvider 2017-10-03 18:45:40 +02:00
Franz Liedke
064752f1eb Get rid of Flarum\Debug namespace 2017-10-03 18:45:40 +02:00
Franz Liedke
925ef227a3 Restructure Flarum\Database namespace 2017-10-03 18:45:40 +02:00
Franz Liedke
cc653412a1 Restructure Flarum\Console namespace 2017-10-03 18:45:40 +02:00
Franz Liedke
b3ce1cd141 Restructure Flarum\Api namespace 2017-10-03 18:45:40 +02:00
Franz Liedke
0e2de95601 Restructure Flarum\Admin namespace 2017-10-03 18:45:38 +02:00
Franz Liedke
2ba7554b5c Fix some namespaces 2017-10-03 16:29:42 +02:00
Franz Liedke
3fc150cd23 Update namespaces for beta 8
Refs flarum/core#1235.
2017-10-01 20:25:23 +02:00
Franz Liedke
30cbe76643 Update namespaces for beta 8
Refs flarum/core#1235.
2017-10-01 19:57:12 +02:00
Franz Liedke
494f953ace Update namespaces for beta 8
Refs flarum/core#1235.
2017-10-01 19:56:38 +02:00
Franz Liedke
909870c381 Update namespaces for beta 8
Refs flarum/core#1235.
2017-10-01 19:56:14 +02:00
Franz Liedke
5dcfccd2d8 Update namespaces for beta 8
Refs flarum/core#1235.
2017-10-01 19:55:56 +02:00
Franz Liedke
a8c43097d7 Update namespaces for beta 8
Refs flarum/core#1235.
2017-10-01 19:55:07 +02:00
Franz Liedke
e2c97286e1 Update namespaces for beta 8
Refs flarum/core#1235.
2017-10-01 19:54:13 +02:00
Toby Zerner
86cc5fe9c8 Remove unused imports 2017-09-29 12:35:59 +09:30
Toby Zerner
4a7d5ba788 Fix notifications not including post content
closes flarum/core#1248
2017-09-24 18:01:56 +09:30
Toby Zerner
17e181bb0d Fix notifications not including post content 2017-09-22 16:45:45 +09:30
Toby Zerner
649a307383 Merge pull request #28 from flarum/analysis-qgx2Q4
Apply fixes from StyleCI
2017-09-20 17:08:05 +09:30
Toby Zerner
fa3194fcef Apply fixes from StyleCI
[ci skip] [skip ci]
2017-09-20 07:37:55 +00:00
Toby Zerner
86480a0d1a Update for display names 2017-09-20 16:44:03 +09:30
Toby Zerner
6f75d95e9f User display names (#1246)
* Introduce user display names

It is not uncommon for forums to be intergrated with sites where users
don't have a unique "handle" - they might just have their first name,
or a full name, which is not guaranteed to be unique.

This commit introduces the concept of "display names" for users. By
default display names are the same as usernames, but extensions may
override this and set them to something different. The important thing
is that all code should use `display_name` whenever intending to output
a human-readable name - `username` is reserved for cases where you want
to output a unique identifier (which may or may not be human-friendly).

The new "GetDisplayName" API is probably sub-optimal, but I didn't worry
too much because we can come up with something better in `next-back`.

ref #557

* Apply fixes from StyleCI

[ci skip] [skip ci]
2017-09-20 16:42:18 +09:30
Toby Zerner
408d882598 Update to sub in "display names" from database when rendering
This also improves the behaviour of mentions in the JS preview (no more
broken links, mention is only picked up if corresponding user/post is
found).

See flarum/core#1246

Closes flarum/core#315
2017-09-19 20:16:30 +09:30
Toby Zerner
65ffee8696 Use ::class 2017-09-19 19:45:31 +09:30
Toby Zerner
cb0e9bd507 Remove unnecessary else statement 2017-09-19 19:44:43 +09:30
Toby Zerner
acd3195491 Make autocomplete dropdown slightly less tall so that it fits below the cursor 2017-09-19 19:38:02 +09:30
Toby Zerner
53e63069c1 Properly inactivate the autocomplete dropdown when there are no suggestions 2017-09-19 19:35:44 +09:30
Toby Zerner
f148013108 😅 2017-09-19 19:13:02 +09:30
Toby Zerner
705ef7536b Don't include post content in the "basic" serializer
Currently all of a post's replies are loaded in full whenever the post
is loaded, which is kind of overkill - we really just need to know that
they exist (and who posted them) in order to render the "X replied to
this" line.
2017-09-19 19:10:07 +09:30
Toby Zerner
5fc3ea94b5 Allow full URLs to be used as the avatar path
This is useful for forums integrating with an external website (eg. a
WordPress site), so they can reference existing avatars directly.

For alternative storage locations (eg. S3) the best practice will still
be to store a relative path and then configure an external base "assets
URL" (this is not currently possible - TODO).

Given this change, I think it would probably make sense to rename the
column to `avatar_url` in the upcoming batch of database naming changes
- then it can contain either a relative or an absolute URL -
@franzliedke do you agree?
2017-09-19 19:03:12 +09:30
Toby Zerner
5bfe75c763 Allow setting the raw content of a CommentPost 2017-09-19 12:13:24 +09:30
Franz Liedke
c85a3ab762 Update zend-diactoros to v1.6
This release contains a useful fix for Content-Length problems
that we have experienced before.

See https://github.com/zendframework/zend-diactoros/releases/tag/1.6.0.
2017-09-15 13:27:11 +02:00
Charlie
d6be091b79 Apply namespace changes for beta 8 (#12)
* Update for beta 8

* StyleCI :)

* docBlock

* whenSavingUser
2017-09-14 19:41:56 +02:00
Toby Zerner
910ddc9f55 Apply fixes from StyleCI
[ci skip] [skip ci]
2017-09-14 09:15:48 +09:30
AakLak
2ea6cbee46 run the convert.sh script by CDK2020 to replace namespaces to be comp… (#8)
* run the convert.sh script by CDK2020 to replace namespaces to be compatible for beta8

* update docbloc to match updated namespace
2017-09-14 09:15:11 +09:30
Toby Zerner
f154c7cae6 Revert "run the convert.sh script by CDK2020 to replace namespaces to be comp… (#8)"
This reverts commit efe07bd696.
2017-09-14 09:06:29 +09:30
Toby Zerner
5c032cdd3a Revert "Apply fixes from StyleCI"
This reverts commit 5ff45a8ea5.
2017-09-14 09:06:15 +09:30
Franz Liedke
0dcbdd6218 Remove empty line 2017-09-13 23:53:42 +02:00
Charlie
ca46ab10a3 Apply namespace changes for beta 8 (#7)
* Update for beta 8

* Remove docblock

* StyleCI is a stickler
2017-09-13 23:52:49 +02:00
Toby Zerner
148dd1cae1 Merge pull request #9 from flarum/analysis-8LxPyn
Apply fixes from StyleCI
2017-09-13 21:30:38 +09:30
Toby Zerner
5ff45a8ea5 Apply fixes from StyleCI
[ci skip] [skip ci]
2017-09-13 12:00:17 +00:00
AakLak
efe07bd696 run the convert.sh script by CDK2020 to replace namespaces to be comp… (#8)
* run the convert.sh script by CDK2020 to replace namespaces to be compatible for beta8

* update docbloc to match updated namespace
2017-09-13 21:29:31 +09:30
Toby Zerner
8de87cc5cc Support cluster setting on backend 2017-09-13 20:43:32 +09:30
Franz Liedke
08024b455d Issue template: Explanation first 2017-09-12 20:41:17 +02:00
Franz Liedke
8b76201f45 Merge pull request #12 from CDK2020/master
Update for beta 8
2017-09-05 08:32:13 +02:00
Charlie
f4e7a80033 Update for beta 8 (#11)
* Update for beta 8

* Never changed for the deprecated event
2017-09-05 08:32:01 +02:00