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

8781 Commits

Author SHA1 Message Date
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
Franz Liedke
d62e31f42e Merge pull request #4 from CDK2020/master
Update for beta 8
2017-09-05 08:31:47 +02:00
Charlie
60ea08c846 Update for beta 8 2017-09-04 21:15:10 -07:00
Charlie
89cd6b1c0e Update for beta 8 2017-09-04 21:08:40 -07:00
Charlie
f17f789878 Update for beta 8 (#12)
* Update for beta 8

* Make StyleCI happy
2017-09-01 16:37:48 +09:30
Charlie
360b9b04f1 Update for beta 8 (#44)
* Update for beta 8

* Make StyleCI happy

* Update Tag.php
2017-09-01 16:37:39 +09:30
epoxa
2b8b63cb01 Fix oauth controller wrong session method call (#1226) 2017-08-19 14:43:21 +09:30
zinsserzh
3517d4e86c Add isEmpty function to ItemList (#1218)
* Add isEmpty function to ItemList

* Fix coding style to be consistent.

* Recompiled app.js for both js/admin/ and js/forum/
2017-08-10 11:37:00 +09:30
Franz Liedke
1349f146d5 Don't hardcode admin URL
Fixes #1219.
2017-08-04 23:37:59 +02:00
Toby Zerner
37bc5eea08 Fix scrubber icon alignment 2017-07-30 09:17:50 +09:30
Franz Liedke
c7767e45b5 Remove faulty default value
Fixes #1210.
2017-07-27 00:55:33 +02:00
Franz Liedke
e85f4122ee Remove obsolete import 2017-07-27 00:27:48 +02:00
Franz Liedke
34bfa56fce Merge branch 'master' of github.com:flarum/flarum-ext-approval 2017-07-27 00:21:09 +02:00
Toby Zerner
0e4fae028b Fix user online icon spacing 2017-07-22 16:10:08 +09:30
Toby Zerner
00588ce39d Make dropdown menu icons a nicer fixed width 2017-07-22 16:09:51 +09:30