Lautenschlager-id / Fromage

An API for the Atelier801's forums.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add timestamp on getTopicMessages when getAllInfo is false

Lautenschlager-id opened this issue · comments

Easy to do, may be useful.

string.gsub(body, string.format(htmlChunk.hidden_value, 'm') .. ".-" .. htmlChunk.ms_time, function(id, timestamp)
	counter = counter + 1
	messages[counter] = {
		f = location.f,
		t = location.t,
		p = pageNumber,
		post = tostring(post + counter),
		id = tonumber(id),
		timestamp = tonumber(timestamp)
	}
end)

Added on v0.3