Commit Graph

550 Commits

Author SHA1 Message Date
1ab1631849 Fix the config table seeder
It should include the "extensions_enabled" key which is read
when initializing all extensions.
2015-05-19 01:53:37 +02:00
dd54803aaf Fix remaining PSR-2 issues. 2015-05-19 01:07:22 +02:00
7885c9a002 Fix coding standards to conform to PSR-2 2015-05-19 01:03:12 +02:00
7e4693a855 Fix code error, static methods can not be abstract. 2015-05-18 17:17:10 +02:00
8e24e7197e Rename ActivityPost to EventPost 2015-05-18 18:47:34 +09:30
1b4b03356a Better API error handling 2015-05-18 18:13:16 +09:30
4dfe6ee1d1 Add some extra optional functionality to the Extend\Permission API
- Automatically serialise the attribute
- Apply Permissible grant callbacks

Need to consider splitting the $permission property into two arguments
(currently have to explode by ‘.’)
2015-05-18 13:51:30 +09:30
7f48a98af8 Make discussion edit permission specific to renaming 2015-05-18 12:34:03 +09:30
50ea261c47 Update permissions table seeder with new structure 2015-05-18 12:31:38 +09:30
6522ecffbc Fix permission query error for Guest model. Fixes #84 2015-05-18 12:29:31 +09:30
4494001ef7 Fix error on discussion page 2015-05-18 08:00:14 +09:30
a577910d04 New object-based extension APIs 2015-05-17 10:19:54 +09:30
8e6adb9be0 Expose serializer/actor to extensions 2015-05-15 17:06:09 +09:30
b4e5f0e6e5 Simplify permissions and add API to register configurable ones
Lots of thought has gone into this; it will show up later when I do the
admin permissions interface / category permissions :)
2015-05-15 17:05:46 +09:30
9ca77d79a0 GitHub for Mac is silly, this should've been in the last commit 2015-05-14 22:41:08 +09:30
3925e5892c Rework notifications architecture
- The recipient(s) are the concern of the notifier/sender, not the
notification itself
- Allow “retraction” of notifications (e.g. if a discussion is
stickied, but then it is unstickied)
- Misc. cleanup
2015-05-14 22:41:08 +09:30
6517b1ec3e Fix user searching 2015-05-14 22:41:08 +09:30
23caaf668a Make MappedMorphTo available on all models
In case extensions want to add that kind of relationship to an existing
model (there’s no way to include traits at runtime)
2015-05-14 22:41:08 +09:30
9e81e9f955 Properly include to-many relations 2015-05-14 22:41:07 +09:30
c5420ef7df Include user in post creation response 2015-05-14 22:41:07 +09:30
9284db5076 Allow finding a post by discussion ID and number 2015-05-14 22:41:07 +09:30
781dc2ef0c New component for post excerpts, which will be shown in search results
Perhaps also in user activity stream. They are used in the mentions
extension.

In order to generate the excerpt, each formatter can implement a
“strip” method which basically converts block formatting into inline
formatting.
2015-05-14 22:41:05 +09:30
85fa9ca609 Fix incorrect attribute name 2015-05-11 12:12:00 +09:30
a1cd6417c7 Add API for adding a formatter 2015-05-11 12:11:26 +09:30
b4fd662000 Remove BasicFormatter; add LinkifyFormatter 2015-05-11 12:11:19 +09:30
e5f2355d17 Post can't be abstract because it needs to be instantiable for querying 2015-05-11 10:40:41 +09:30
d166757930 Extract mappedMorphTo function into a trait
Not sure if this is the best thing to do, it could also just be put on
the base Model class
2015-05-11 10:39:54 +09:30
825b4082de Copy the config.php file upon installation.
This allows us to know whether Flarum is already installed, so that
we can disable certain service providers when it isn't.

This should fix #67.
2015-05-08 20:44:53 +02:00
e1569beb00 Fix discussion seeder not using the correct post subtypes.
Related to #67.
2015-05-08 18:12:02 +02:00
2245b11bb1 Seed command: Only run seeders that have not been run as part of flarum:install command. 2015-05-08 15:15:09 +02:00
df8a035935 Remove obsolete line.
Related to #67.
2015-05-08 15:15:08 +02:00
023b8b9a9c Don't attempt deletion if the user doesn't have an avatar 2015-05-07 16:54:26 +09:30
c58fc07798 Actually use the calculated offset 2015-05-07 16:54:14 +09:30
b5169512cb Move some API error handling code around. It still sucks though 2015-05-07 16:08:20 +09:30
59d8d63acd Add preliminary avatar resizing 2015-05-07 13:59:07 +09:30
05e561d3d6 Add pagination links to JSON-API index actions 2015-05-07 08:22:15 +09:30
8e1f6db85d Change mergeInto return signature; only merge posts if same user 2015-05-07 06:38:40 +09:30
80aaf42a53 Fix signup error 2015-05-06 12:12:31 +09:30
bde9bf9378 Fix FontAwesome path 2015-05-06 12:12:22 +09:30
54f731942e Add user group badges 2015-05-06 11:25:19 +09:30
92c1ee26c8 Fix content attribute decoding into an object 2015-05-06 11:24:02 +09:30
e7ff776001 Collect gambits that were matched and applied 2015-05-06 11:23:35 +09:30
a4d3345b99 Add shortcut API to serialize attributes 2015-05-06 11:23:12 +09:30
9559ac1bb6 Delete previous avatar when uploading a new one 2015-05-06 11:22:35 +09:30
8258d4e504 Fix dud call in magic method 2015-05-05 17:31:29 +09:30
a822deaa98 Clean up post type heritable view arguments 2015-05-05 17:29:43 +09:30
8aa6253c59 Precursor to storing extension providers for later use 2015-05-05 17:05:47 +09:30
92a75fd786 Add a base ServiceProvider with useful public APIs 2015-05-05 14:30:45 +09:30
2850c1b38c Make NotificationSender compatibleWith method static 2015-05-05 14:29:57 +09:30
d13cb03e39 Return the post that was added/changed/deleted 2015-05-05 14:29:07 +09:30