Files
danbooru/test/functional
evazion 5ba1df5502 /posts/:id/events: list is_resolved correctly for appeals.
/posts/:id/events incorrectly lists appeals as always being resolved.
This is because events UNION together appeals and flags, which doesn't
quite work because for appeals is_resolved is a method, not an
attribute. is_resolved was hardcoded to true so it'd work in the UNION.

This changes PostEvent to be a wrapper object around PostFlag /
PostAppeal, instead of a UNION. PostEvent delegates everything to the
inner flag/appeals object, so that is_resolved works correctly.

Also, this incidentally fixes a problem with /posts/:id/event.xml not
serializing correctly.
2017-03-19 22:47:10 -05:00
..
2017-02-06 18:48:35 -06:00
2017-02-21 13:40:52 -08:00
2016-01-18 17:22:27 -08:00
2017-01-24 16:05:06 -08:00
2015-06-29 18:17:59 -07:00
2013-08-04 17:11:51 -07:00
2017-02-21 13:40:52 -08:00
2017-03-15 16:08:47 -07:00
2015-12-17 14:29:17 -08:00