Files
danbooru/app/models
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-28 16:28:58 -08:00
2017-01-03 15:04:47 -08:00
2016-02-22 17:02:15 -08:00
2015-08-18 17:40:53 -07:00
2014-04-16 17:43:34 -07:00
2017-01-03 15:04:47 -08:00
2014-04-16 17:43:34 -07:00
2017-01-03 15:04:47 -08:00
2017-02-21 13:40:52 -08:00
2017-03-09 18:18:06 -08:00
2017-03-16 15:17:55 -07:00
2016-09-25 14:56:19 -07:00
2017-03-15 16:08:47 -07:00
2017-01-03 15:04:47 -08:00
2017-03-17 19:10:55 -07:00
2017-01-17 15:46:21 -08:00
2015-08-18 17:40:53 -07:00
2017-03-15 15:36:48 -07:00