Toby Zerner
9a0190e13a
Allow post author to see their own deleted post
...
closes flarum/core#225
2015-08-13 13:02:13 +09:30
Toby Zerner
6dd6942e17
Fix avatar uploading permissions
...
closes flarum/core#230
2015-08-13 12:59:40 +09:30
Toby Zerner
8aafce5fd8
Fix Laravel 5.1 compat
2015-08-13 10:41:17 +09:30
Toby Zerner
47595ff9c4
Decouple from Laravel, implement translator
2015-08-12 18:33:39 +09:30
Toby Zerner
9f0358bb39
Update to Laravel 5.1
...
Eloquent `lists()` now returns a collection
2015-08-12 13:24:11 +09:30
Toby Zerner
3aebd458b0
Make sure access/email/password tokens are valid
2015-08-06 15:04:38 +09:30
Toby Zerner
c361c97394
Enforce discussion renaming/deleting/post editing timed permissions
2015-08-05 19:21:33 +09:30
Toby Zerner
4c06e78b57
Allow/disallow signup per config
2015-08-05 18:19:26 +09:30
Toby Zerner
023eff95e3
Let users see themselves even if they can't see the forum
2015-08-05 18:12:09 +09:30
Toby Zerner
ff8dc5ef25
Enforce forum.view permission
2015-08-05 18:08:31 +09:30
Toby Zerner
42e382045a
API: Add event for determining user groups for permissions
2015-08-05 16:06:55 +09:30
Toby Zerner
f42c3cd1ed
Allow admins to delete users
2015-08-05 12:08:28 +09:30
Toby Zerner
1679f1e27b
Implement edit user modal
...
EditUserHandler is a bit rough
2015-08-05 11:49:37 +09:30
Toby Zerner
f49d0e5341
Allow locale to be selected in footer
2015-08-05 09:50:57 +09:30
Toby Zerner
48df9bb678
Fix syntax error
2015-08-04 21:50:44 +09:30
Toby Zerner
187517a9c7
Remove ability for users to delete themselves
2015-08-04 21:35:41 +09:30
Toby Zerner
e091b037f3
Radically simplify user activity system
...
The activity system we were using was built around a separate table.
Whenever the user posted something, or deleted a post, we would sync
the table. The advantage of this was that we could aggregate activity
of all different types very efficiently.
It turns out that it came with a huge disadvantage: there was no
efficient way to enforce permissions on activity. If a user posted
something in a private tag, everyone could still see it on their
activity feed. My stopgap solution was to only sync activity for posts
that are viewable by guests, but that was way too limited.
It also turns out that aggregating activity of different types is
really not that useful, especially considering most of it is the user
making posts. So I've gotten rid of that whole overly-complicated
system, and just made the user profile display separate lists of posts
and discussions, retrieved from those respective APIs. The discussions
page is an actual discussion list too, which is pretty cool.
It's still technically possible to aggregate different activity types
(basically just aggregate API responses together), but we can do that
later if there's a need for it.
This is probably my favourite commit of the day :)
2015-08-04 18:44:22 +09:30
Toby Zerner
a2c3c4e51b
Only add posted activity if the post is visible publicly
...
This is very restrictive behaviour and we'll probably need to think of
something a bit more powerful in the future. But it's a good stopgap.
2015-08-04 17:47:46 +09:30
Toby Zerner
667fe56947
Use morphTo instead of mappedMorphTo
...
Turns out we don't need MappedMorphTo after all.
2015-08-04 17:33:58 +09:30
Toby Zerner
5b3484d3c8
Improve error handling somewhat
...
- Fix composer crashing/not showing alert on error
- Make a general ValidationException which takes an array of field ⇒
messages to be outputted nicely by the API
2015-08-04 13:03:46 +09:30
Toby Zerner
70901b1420
Rough extension management implementation
2015-08-03 12:03:30 +09:30
Toby Zerner
66ee6e57ee
Convert permission IDs into strings
2015-08-02 18:02:35 +09:30
Toby Zerner
6f09ba6591
Clean up
2015-07-31 20:17:17 +09:30
Toby Zerner
fde7afd3e2
Finish admin permissions page and clean up everything
2015-07-31 20:16:47 +09:30
Toby Zerner
5706c71c86
Convert email/password token date fields
2015-07-31 20:14:19 +09:30
Toby Zerner
cea8e7f567
Add group management actions to API
2015-07-31 20:10:49 +09:30
Toby Zerner
6641af3ac3
Refactor some model stuff out into traits
2015-07-31 20:09:31 +09:30
Toby Zerner
513d896f51
Fix more aspects of the password reset process
2015-07-31 14:13:35 +09:30
Toby Zerner
42fd8e26c1
Begin implementing permissions page
2015-07-29 21:00:27 +09:30
Toby Zerner
d8d9cac7c3
Enable caching of minified formatter JS
2015-07-29 20:54:48 +09:30
Toby Zerner
8f29949016
Fix email confirmation
2015-07-28 17:14:08 +09:30
Toby Zerner
02944548a1
Clean up
2015-07-28 15:35:03 +09:30
Toby Zerner
8c18ff3349
Tweak TextFormatter JS settings
2015-07-28 12:44:58 +09:30
Toby Zerner
153a5b7ce4
PERF: avoid reinstantiation of event subscribers
2015-07-27 11:53:47 +09:30
Toby Zerner
c0d57fd399
PERF: further simplify User::hasPermission()
2015-07-27 11:20:18 +09:30
Toby Zerner
07b4a5125f
PERF: cache the results of User::hasPermssion()
2015-07-27 11:17:21 +09:30
Toby Zerner
b04e7f96c8
Cache model dates
2015-07-27 10:59:24 +09:30
Toby Zerner
ae3bbc1700
Replace duplicate tags instead of erroring
2015-07-23 20:29:39 +09:30
Toby Zerner
c1b12c7fc9
Extract emoticons, BBCode, and Markdown into extensions
2015-07-23 20:24:41 +09:30
Toby Zerner
c8e6fbc338
Pass correct param to notification email views
2015-07-23 16:39:56 +09:30
Toby Zerner
5b54a122c9
Notification one-per-user limit should work between instances
2015-07-23 14:33:58 +09:30
Toby Zerner
b699bbadbc
Make formatter extensible
2015-07-23 14:29:33 +09:30
Toby Zerner
8442f65cdf
Fix post visibility scoping
2015-07-22 16:05:11 +09:30
Toby Zerner
a0fe68272c
Implement TextFormatter for posts
...
Get rid of formatting on user bios, we'll do that with JavaScript
2015-07-22 16:03:48 +09:30
Toby Zerner
c697c734d5
Don't run gambits if there's no search query
2015-07-22 09:57:52 +09:30
Toby Zerner
e1a51f095f
Random cleanup
2015-07-22 09:57:25 +09:30
Toby Zerner
d410746c51
Fix new notifications on old subjects not appearing
2015-07-20 18:20:34 +09:30
Toby Zerner
c287d40072
Fix incorrect variable name
2015-07-20 18:10:11 +09:30
Toby Zerner
19fe138770
Change order of bootstrapping
...
See commit on flarum/flarum for explanation
2015-07-20 18:01:08 +09:30
Toby Zerner
57650fa648
Rework public API based on events
2015-07-18 22:59:47 +09:30