Improved anime history

This commit is contained in:
Eduard Urbach 2018-03-13 18:37:54 +01:00
parent 12de621214
commit 663070cf2a

View File

@ -20,7 +20,7 @@ func History(ctx *aero.Context) string {
} }
entries := arn.FilterEditLogEntries(func(entry *arn.EditLogEntry) bool { entries := arn.FilterEditLogEntries(func(entry *arn.EditLogEntry) bool {
return entry.ObjectType == "Anime" && entry.ObjectID == id return entry.ObjectID == id && (entry.ObjectType == "Anime" || entry.ObjectType == "AnimeCharacters" || entry.ObjectType == "AnimeRelations" || entry.ObjectType == "AnimeEpisodes")
}) })
arn.SortEditLogEntriesLatestFirst(entries) arn.SortEditLogEntriesLatestFirst(entries)