Support ProblematicTimelineItem in trending feed

This commit is contained in:
syeopite
2025-03-19 23:50:41 -07:00
parent f7810ba007
commit 7b27585454
2 changed files with 6 additions and 3 deletions

View File

@@ -299,8 +299,11 @@ end
# the rest of the (hopefully) successfully parsed item on a page.
struct ProblematicTimelineItem
property parse_exception : Exception
property id : String
def initialize(@parse_exception); end
def initialize(@parse_exception)
@id = Random.new.hex(8)
end
def to_json(locale : String?, json : JSON::Builder)
json.object do