1
0
mirror of https://github.com/flarum/core.git synced 2025-08-22 08:04:37 +02:00

3529 Commits

Author SHA1 Message Date
Toby Zerner
cd2d56fd99 lists → pluck for Laravel 5.5 2017-12-27 16:06:27 +10:30
Toby Zerner
a1fe93f355 Update namespaces for beta 8 2017-12-27 09:52:45 +10:30
Toby Zerner
b8d73a9ade lists → pluck for Laravel 5.5 2017-12-27 07:32:39 +10:30
Toby Zerner
b4bc534028 Upgrade to Laravel 5.5 2017-12-27 07:32:21 +10:30
Toby Zerner
8b843a9eb3 Fix class names 2017-12-27 07:31:26 +10:30
Toby Zerner
ccd1aff156 Merge branch 'master' into next-back 2017-12-27 07:09:40 +10:30
Toby Zerner
b5809d1b7f Merge branch 'master' into next-back 2017-12-27 07:06:09 +10:30
Toby Zerner
57c730af29 Merge branch 'master' into next-back
# Conflicts:
#	src/Listener/PinStickiedDiscussionsToTop.php
2017-12-26 20:38:55 +10:30
Toby Zerner
4548522ad7 Merge branch 'master' into next-back 2017-12-26 20:23:13 +10:30
Toby Zerner
2d9839ee66 Fix relationship method arguments
As per https://laravel.com/docs/5.5/upgrade (under "Eloquent")
2017-12-26 20:21:47 +10:30
Toby Zerner
c145121516 Merge branch 'master' into next-back
# Conflicts:
#	src/Listener/AddPostMentionedByRelationship.php
#	src/Listener/FormatPostMentions.php
#	src/Listener/FormatUserMentions.php
#	src/Listener/UpdatePostMentionsMetadata.php
#	src/Listener/UpdateUserMentionsMetadata.php
2017-12-26 20:20:31 +10:30
Toby Zerner
f38103e077 Fix likes relationship method arguments
As per https://laravel.com/docs/5.5/upgrade (under "Eloquent")
2017-12-26 20:09:44 +10:30
Toby Zerner
1c7855b646 Merge branch 'master' into next-back
# Conflicts:
#	src/Listener/SendNotificationWhenPostIsLiked.php
2017-12-26 19:59:27 +10:30
Toby Zerner
92017e5a40 Merge branch 'master' into next-back 2017-12-26 19:50:48 +10:30
Toby Zerner
a822ab8310 Fix class name 2017-12-26 19:47:42 +10:30
Toby Zerner
15039737b8 Don't over-cache the disallowed tags 2017-12-26 19:44:53 +10:30
Toby Zerner
6f07aef206 Performance: Reuse list of disallowed tags 2017-12-26 19:44:53 +10:30
Toby Zerner
88228df6f2 Clean up some variable/method names 2017-12-19 08:57:55 +10:30
Toby Zerner
d827fd36fe Prevent statistics from being loaded outside of admin
closes flarum/core#1311
2017-12-19 08:52:13 +10:30
Toby Zerner
d56b792a9d I think we're finally good with the timezone stuff now?
MySQL's UNIX_TIMESTAMP function interprets the date using MySQL's
configured timezone, which we don't want (may be misconfigured etc).
Instead, now we do the conversion to a timestamp on the PHP side. Then
JavaScript is given the offset between UTC and the configure timezone
so it can work out how to display the data.
2017-12-11 22:42:51 +10:30
Toby Zerner
6857d32d22 Add "today" period with hourly breakdown, and fix timezone issues
This fix ensures that before aggregating daily/hourly statistics, dates
are converted into the local timezone ("flarum-statistics.timezone" in
the settings table).
2017-12-11 19:01:38 +10:30
Toby Zerner
8860def12e Only show this period's value in tooltip 2017-12-11 18:53:47 +10:30
Toby Zerner
b65ad8a5ce Only update chart values if needed 2017-12-11 18:52:54 +10:30
Toby Zerner
3f1f92b565 Show a tick next to the selected period 2017-12-11 18:48:32 +10:30
Toby Zerner
ae063b52e8 Fix date range sometimes leaving out today 2017-12-11 07:52:48 +10:30
Toby Zerner
898469e398 Display tweaks 2017-12-11 07:52:05 +10:30
Toby Zerner
410dd2c679 Set default period to last 7 days 2017-12-10 21:26:54 +10:30
Toby Zerner
1780448e70 Abbreviate numbers 2017-12-10 21:26:42 +10:30
Toby Zerner
a595d9e846 Initial commit 2017-12-10 21:11:13 +10:30
Toby Zerner
e674b0181b Extract admin dashboard statistics from core into an extension 2017-12-10 21:05:01 +10:30
Toby Zerner
8bdbacedcc Merge pull request #110 from milescellar/patch-2
Create core.ref.posts reused translation to replace multiple occurences
2017-11-30 08:02:47 +10:30
Miles Cellar
f2075ec3bf Create core.ref.posts reused translation to replace multiple occurences 2017-11-29 19:49:12 +01:00
Miles Cellar
65813f1dbd Use reused translation on the Statistics dashboard widget 2017-11-29 19:40:54 +01:00
Toby Zerner
a0587ec68a Update translations for dashboard overhaul 2017-11-29 17:22:17 +10:30
Toby Zerner
e4d863842a Add translation for 404 error return link 2017-11-29 13:23:55 +10:30
Toby Zerner
4369ff350b Add translations for errors messages, log out confirmation 2017-11-29 13:05:10 +10:30
Toby Zerner
8c900dec01 Update translations for reset password UI 2017-11-29 13:04:56 +10:30
Toby Zerner
20f6a256d5 Only touch orders property if we're going to add to it 2017-11-13 13:18:36 +10:30
Toby Zerner
c7d7b2d360 Fix subsequent pages of results not working properly 2017-11-13 09:17:55 +10:30
Toby Zerner
0ce00c6d16 Performance: Refactor SQL that pins unread sticky posts to the top
Ordering by `is_sticky and (unread subquery) desc` removes MySQL's
ability to use an index for ordering by `last_time`, which triggers a
filesort across the whole discussions table which is BAD.

This commit uses a union to add all stickied discussions to the query.
The results of the unioned queries are then ordered by the `is_sticky
and (unread subquery)` criteria, so the filesort only takes place on
a maximum of limit * 2 rows. Big performance win when you get up to
thousands of discussions!
2017-11-12 21:28:17 +10:30
Toby Zerner
89f417097b Performance: Load only basic information about lastDiscussion 2017-11-11 22:40:48 +10:30
Toby Zerner
6a21d292c5 Performance: Eager load parent tags 2017-11-11 22:40:22 +10:30
Toby Zerner
14215773b3 Fix positioning of quote button when parents are positioned relatively 2017-11-10 17:45:21 +10:30
Toby Zerner
41616e45ca Revert omission of image size
Turns out this is still required in SVG mode :D
2017-11-09 21:00:27 +10:30
Toby Zerner
ca788d711c Remove B) shortcut
It's pretty common in text (eg. and A), B), C) list) and is usually not
intended.
2017-11-08 20:21:41 +10:30
Zeokat
996f1724de Use SVG emoji instead of PNG 2017-11-08 20:18:26 +10:30
Toby Zerner
7ff57e1ba4 Refactor sticky order clause into a subquery
Based on some limited testing, using a subquery seems to outperform a
join in this case (the join was invoking a temporary table, which is
always a bad sign).

This also adds logic to fix a bug where sticky discussions would remain
at the top even when marked as read using the "mark all as read" button.
I thought we had an open issue for this somewhere, but I can't seem to
find one. ref #988 #1003
2017-11-08 11:34:37 +10:30
Toby Zerner
f00f522d6c Merge pull request #108 from milescellar/patch-1
Remove unnecessary double quotes
2017-11-05 12:57:07 +02:00
Toby Zerner
60f111ca87 Add translation for Preview tooltip 2017-11-05 16:28:00 +10:30
Toby Zerner
101af171b1 Don't sanitize values in plain-text emails 2017-11-05 15:29:46 +10:30