Toby Zerner
05e561d3d6
Add pagination links to JSON-API index actions
2015-05-07 08:22:15 +09:30
Toby Zerner
8e1f6db85d
Change mergeInto return signature; only merge posts if same user
2015-05-07 06:38:40 +09:30
Toby Zerner
80aaf42a53
Fix signup error
2015-05-06 12:12:31 +09:30
Toby Zerner
bde9bf9378
Fix FontAwesome path
2015-05-06 12:12:22 +09:30
Toby Zerner
54f731942e
Add user group badges
2015-05-06 11:25:19 +09:30
Toby Zerner
92c1ee26c8
Fix content attribute decoding into an object
2015-05-06 11:24:02 +09:30
Toby Zerner
e7ff776001
Collect gambits that were matched and applied
2015-05-06 11:23:35 +09:30
Toby Zerner
a4d3345b99
Add shortcut API to serialize attributes
2015-05-06 11:23:12 +09:30
Toby Zerner
9559ac1bb6
Delete previous avatar when uploading a new one
2015-05-06 11:22:35 +09:30
Toby Zerner
8258d4e504
Fix dud call in magic method
2015-05-05 17:31:29 +09:30
Toby Zerner
a822deaa98
Clean up post type heritable view arguments
2015-05-05 17:29:43 +09:30
Toby Zerner
8aa6253c59
Precursor to storing extension providers for later use
2015-05-05 17:05:47 +09:30
Toby Zerner
92a75fd786
Add a base ServiceProvider with useful public APIs
2015-05-05 14:30:45 +09:30
Toby Zerner
2850c1b38c
Make NotificationSender compatibleWith method static
2015-05-05 14:29:57 +09:30
Toby Zerner
d13cb03e39
Return the post that was added/changed/deleted
2015-05-05 14:29:07 +09:30
Toby Zerner
f2056c4acf
Clean up post type API
2015-05-05 14:28:40 +09:30
Toby Zerner
bf593504c7
Clean up event handlers
2015-05-05 14:27:47 +09:30
Toby Zerner
24481f3f77
Change API for serializer relationships
2015-05-05 14:26:53 +09:30
Toby Zerner
3726c97d5c
Remove old code
2015-05-05 09:17:00 +09:30
Toby Zerner
f0219de93f
Fix admin
2015-05-05 09:16:53 +09:30
Toby Zerner
56ef42f931
Add concept of "mergeable" activity posts
...
For example: when you rename a discussion, DiscussionRenamedPost is
created. If you rename it again immediately afterwards, then a new
DiscussionRenamedPost can be merged into the old one. This will either
result in the old one being updated with the new title, or it being
deleted all together if it was renamed back to the old title.
2015-05-04 12:19:25 +09:30
Toby Zerner
0a2c05379c
Update TokenAction for new architecture
2015-05-04 10:30:56 +09:30
Toby Zerner
9af9dce740
Add ExtensionsServiceProvider to load enabled extensions
2015-05-04 08:56:19 +09:30
Toby Zerner
67f64b631a
Pass action in RenderView event so that handler can access actor
2015-05-04 08:55:44 +09:30
Toby Zerner
850a49285b
Add API to define custom model relationships
2015-05-04 08:55:03 +09:30
Toby Zerner
f03f046efe
Add event to modify user search
2015-05-03 12:07:15 +09:30
Toby Zerner
d966c9831a
Add event for registering user search gambits
2015-05-03 12:06:01 +09:30
Toby Zerner
b38878da80
Add delete avatar action
2015-05-03 12:05:18 +09:30
Toby Zerner
29be20c91a
Fix incorrect function call
2015-05-03 12:04:57 +09:30
Toby Zerner
8f29679b46
Convert the rest of the API to new action architecture
...
Also make some tweaks:
- Merge SerializeAction::$include and
SerializeAction::$includeAvailable into a keyed boolean array
- Set defaults for SerializeAction::$limit and $limitMax
- Rename SerializeAction::$sortAvailable to $sortFields
2015-05-03 12:04:43 +09:30
Toby Zerner
ecdb2becd4
Assign user input to data property on EditDiscussionCommand
2015-05-02 09:01:27 +09:30
Toby Zerner
f67f34e287
Add removed posts as an API attribute
2015-05-02 09:00:22 +09:30
Toby Zerner
8ee9480205
Update discussion/post sort semantics inline with new API actions
...
Instead of $sort and $order being separate, they are now a single
array, allowing multiple sort criteria: `[‘foo’ => ‘asc', ‘bar’ =>
‘desc’]`
2015-05-02 09:00:07 +09:30
Toby Zerner
22ff8a203d
Make sure serializers work with relations implemented with magic (via __call)
2015-05-02 08:58:28 +09:30
Toby Zerner
db31d9f772
Making a note that we should not use Actor as a singleton
2015-05-02 08:57:14 +09:30
Toby Zerner
a426fa6560
Update API action architecture
...
- An API action handles a Flarum\Api\Request, which is a simple object
containing an array of params, the actor, and optionally an HTTP
request object
- Most API actions use SerializeAction as a base, which parses request
input according to the JSON-API spec (creates a JsonApiRequest object),
runs the child class method to get data, then serializes it and assigns
it to a JsonApiResponse (standard HTTP response with a
Tobscure\JsonApi\Document as content)
- The JSON-API request input parsing is subject to restrictions as
defined by public static properties on the action (i.e. extensible)
- Also the actor is given to the serializer instance now, instead of
being a static property
2015-05-02 08:56:43 +09:30
Toby Zerner
288fd694a8
Extensibility: data when starting a new discussion
2015-05-02 08:39:44 +09:30
Toby Zerner
60e69ae7b9
Add an event to register discussion gambits
2015-05-02 08:12:30 +09:30
Toby Zerner
66b374b1c1
Add API to collect posts that were removed during an action
...
This is useful for both the Sticky and Categories extensions, where if
you sticky a discussion and then immediately unsticky it, or if you
move it to a category and then immediately move it back, the last
“activity” post will be removed.
2015-05-02 08:12:09 +09:30
Toby Zerner
a2fd60ed0c
Define assets in a more appropriate spot, make extensible
2015-05-02 08:10:06 +09:30
Toby Zerner
c3aecbceaa
Extract config into database
2015-05-02 08:07:51 +09:30
Toby Zerner
ac269683ed
Merge remote-tracking branch 'upstream/master'
2015-04-25 22:45:27 +09:30
Toby Zerner
52b476dc6b
Return more relations when a discussion is created
2015-04-25 22:37:25 +09:30
Toby Zerner
34d150b24b
Fix read discussion command action
2015-04-25 22:37:04 +09:30
Toby Zerner
0548ebd54c
Allow custom relation to be specified as string
2015-04-25 22:36:34 +09:30
Toby Zerner
8fdc1ba548
Add BootForum event so extensions can add assets
2015-04-25 22:35:41 +09:30
Toby Zerner
b6613dbdc2
Recompile assets every time a file changes
2015-04-25 22:34:56 +09:30
Toby Zerner
a57e3fc028
Use Less_Parser cache feature to speed up LESS generation
2015-04-25 22:34:46 +09:30
Toby Zerner
c6079c53c9
Fix email confirmation route
2015-04-25 22:34:33 +09:30
Toby Zerner
8491c4cbf8
Rename assets directory
2015-04-25 22:34:26 +09:30